Skip to content

Commit

Permalink
$(OS) should return only two values - Windows_NT and Unix .
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ankit Jain committed Apr 6, 2016
1 parent 14dc34a commit 0a4ed63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shared/NativeMethodsShared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ internal static string OSName
{
get
{
return IsOSX ? "OSX" : (IsUnix ? "Unix" : "Windows_NT");
return IsWindows ? "Windows_NT" : "Unix";
}
}

Expand Down

0 comments on commit 0a4ed63

Please sign in to comment.