DNX on OSX/Linux loads the wrong System.Runtime.InteropServices.RuntimeInformation package #2594
Comments
/cc @BrennanConroy |
@anurse @moozzyk @BrennanConroy Any ideas on this one guys? |
We don't own |
Ya, this is because the dll in the nupkg was windows specific. |
Later versions of this package have a runtime.json with osx and Linux targets defined |
@BrennanConroy So is this fixed now? |
It might be once Coherence passes. |
@BrennanConroy Please test this once we have Coherence. |
This will still be broken after Coherence, it looks like the |
The same should probably be done for |
Should also update the NetCore.Platforms list too |
I'll take this and also ping the necessary folks about updating that package. |
System.Runtime.InteropServices.RuntimeInformation.IsPlatform(OSPlatform.Windows)
always returns true, even on OSX and Linux.Repro
Run this on different platforms. It will always print "Windows".
Versions
This is related to #2387. Our myget feed publishes a package of System.Runtime.InteropServices.RuntimeInformation that includes the Windows version of the dll. This gets loaded at runtime, and thus misinforms the
IsPlatform
API about which OS is actually running.The text was updated successfully, but these errors were encountered: