Build/Test Issues

RuntimeInformation throws when running in NCrunch

Started by alastairs on 5,388 views

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.:
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
Hi Alastair -

Thanks for sharing this issue.

I managed to fix this one over the weekend. The fix will be included in the v3.6 release that I'm hoping to push later this week. An early build is available below:

http://downloads.ncrunch.net/NCrunch_Console_3.6.0.1.msi
http://downloads.ncrunch.net/NCrunch_Console_3.6.0.1.zip
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.6.0.1.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.6.0.1.zip
http://downloads.ncrunch.net/NCrunch_LicenseServer_3.6.0.1.zip
http://downloads.ncrunch.net/NCrunch_VS2008_3.6.0.1.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.6.0.1.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.6.0.1.zip
http://downloads.ncrunch.net/NCrunch_VS2012_3.6.0.1.msi
http://downloads.ncrunch.net/NCrunch_VS2012_3.6.0.1.zip
http://downloads.ncrunch.net/NCrunch_VS2013_3.6.0.1.msi
http://downloads.ncrunch.net/NCrunch_VS2013_3.6.0.1.zip
http://downloads.ncrunch.net/NCrunch_VS2015_3.6.0.1.msi
http://downloads.ncrunch.net/NCrunch_VS2015_3.6.0.1.zip
http://downloads.ncrunch.net/NCrunch_VS2017_3.6.0.1.msi
http://downloads.ncrunch.net/NCrunch_VS2017_3.6.0.1.zip
Fantastic, thanks for the quick fix and reply!

Post a reply

Log in to reply.