From 0a4ed63a93564987a5dd867ec86ea09d4dc1e9d8 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Wed, 6 Apr 2016 15:33:13 -0400 Subject: [PATCH] $(OS) should return only two values - `Windows_NT` and `Unix` . Based on the discussion in issue #539, $(OS) property will return `Windows_NT` whenever running on windows and `Unix` for any other OS. NativeMethodsShared.OSName is used to set that property, hence this is being changed. --- src/Shared/NativeMethodsShared.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shared/NativeMethodsShared.cs b/src/Shared/NativeMethodsShared.cs index d7867da2b14..4c68f40ba5d 100644 --- a/src/Shared/NativeMethodsShared.cs +++ b/src/Shared/NativeMethodsShared.cs @@ -535,7 +535,7 @@ internal static string OSName { get { - return IsOSX ? "OSX" : (IsUnix ? "Unix" : "Windows_NT"); + return IsWindows ? "Windows_NT" : "Unix"; } }