Skip to content

Instantly share code, notes, and snippets.

@svick
Created July 6, 2016 09:30
Show Gist options
  • Save svick/18a06d31d680a9f4e7e9d770037096af to your computer and use it in GitHub Desktop.
Save svick/18a06d31d680a9f4e7e9d770037096af to your computer and use it in GitHub Desktop.
Investigating dotnet publish, RuntimeInformation and mono
using System;
using System.Runtime.InteropServices;
public class Program
{
public static void Main()
{
Console.WriteLine(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
}
}
{
"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