Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

RuntimeInformation throws when running in NCrunch
alastairs
#1 Posted : Sunday, March 12, 2017 9:34:31 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/13/2011(UTC)
Posts: 54
Location: Cambridge, UK

Thanks: 22 times
Was thanked: 4 time(s) in 4 post(s)
I've hit another oddity when running my tests in NCrunch which I don't see when running in the VS 2017 test runner or the dotnet CLI. When my tests execute under the NCrunch test runner, every member of `RuntimeInformation` throws a `PlatformNotSupportedException`, e.g.:
Code:
System.PlatformNotSupportedException: Operation is not supported on this platform.
   at System.Runtime.InteropServices.OSPlatform.get_Windows()


The test project in question targets netcoreapp1.1, and the class library it covers targets netstandard1.6.

Many thanks in advance

Alastair
Remco
#2 Posted : Sunday, March 12, 2017 9:38:39 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
1 user thanked Remco for this useful post.
alastairs on 3/12/2017(UTC)
alastairs
#3 Posted : Sunday, March 12, 2017 10:35:11 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/13/2011(UTC)
Posts: 54
Location: Cambridge, UK

Thanks: 22 times
Was thanked: 4 time(s) in 4 post(s)
Fantastic, thanks for the quick fix and reply!
Remco
#4 Posted : Wednesday, March 15, 2017 4:38:31 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
A fix for this is now out with v3.6.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.032 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download