Tiny CLR won't tell you what the OS is. Assume tiny CLR is running on Windows.
This commit is contained in:
parent
e4b9bd265c
commit
0f1a72e7e0
|
|
@ -12,8 +12,12 @@ namespace Microsoft.AspNet.Server.Kestrel.Networking
|
||||||
{
|
{
|
||||||
public static bool IsWindows()
|
public static bool IsWindows()
|
||||||
{
|
{
|
||||||
|
#if K10
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
var p = (int)Environment.OSVersion.Platform;
|
var p = (int)Environment.OSVersion.Platform;
|
||||||
return (p != 4) && (p != 6) && (p != 128);
|
return (p != 4) && (p != 6) && (p != 128);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Apply(Libuv libuv)
|
public static void Apply(Libuv libuv)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue