Created
July 6, 2016 09:30
-
-
Save svick/18a06d31d680a9f4e7e9d770037096af to your computer and use it in GitHub Desktop.
Investigating dotnet publish, RuntimeInformation and mono
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0.0-*", | |
"buildOptions": { | |
"debugType": "portable", | |
"emitEntryPoint": true | |
}, | |
"dependencies": { | |
"System.Runtime": "4.0.0", | |
"System.Runtime.InteropServices.RuntimeInformation": "4.0.0" | |
}, | |
"frameworks": { | |
"net451": { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment