-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$(OS) should return only two values - Windows_NT
and Unix
.
#538
Conversation
@dotnet-bot test this please |
Should we revert this only for Mono? |
No, IMO, we should have uniform behavior w.r.t this. Having different behavior will likely cause unnecessary pain. And it doesn't affect compatibility with existing projects. If the proposed approach in #539 sounds acceptable, then I'll change this PR accordingly. The proposed approach being:
If the user's requirement is to simply check for "windows or unix-like", then If this is acceptable, then I can update the PR to not revert the patch, hence retain |
In corefx we currently do the 'hack' of setting OSX to Unix because we were seeing issues for this so I don't think that this would cause issues for now, but I'm not sure until I test it. |
Based on discussion in #539 this should change to only return |
Sure, I'll do that. |
Based on the discussion in issue dotnet#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.
Windows_NT
and Unix
.
LGTM |
@dotnet-bot test this please |
On Windows, the $(OS) is "WIndows_NT" since dotnet/msbuild#538 Also update .gitignore and .sln to latest VS 2017.3
Based on the discussion in issue #539, $(OS) property will return
Windows_NT
whenever running on windows andUnix
for any other OS.NativeMethodsShared.OSName is used to set that property, hence this is
being changed.