-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Fix Environment.OSVersion.Platform output on MacOSX #19697
Conversation
259be7a to
71f0a52
Compare
|
test? |
|
I thought returning |
|
It is by design to match Mono. |
|
That's fine, but @ViktorHofer could you please then add a comment to the code instead? Otherwise tihs will come up agian. |
|
@danmosemsft yes but I will wait till we decided if we should also add annotations. See https://github.com/dotnet/corefx/issues/19694. |
jkotas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be compatible with Mono on non-Windows where possible. Since Mono is returning Unix on MacOSX, we should return it too.
|
@jkotas we aren't changing it. This PR is halted till the decision is made here: https://github.com/dotnet/corefx/issues/19694 |
7c11842 to
7441fee
Compare
7441fee to
a4fd9f1
Compare
|
@jkotas @stephentoub @danmosemsft PTAL |
| { | ||
| Win32S = 0, | ||
| Win32Windows = 1, | ||
| [EditorBrowsable(EditorBrowsableState.Never)] Win32S = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is most important to have these annotations in the reference assembly src/System.Runtime.Extensions/ref/.... The editor looks for the attributes in the reference assembly.
Annotating implementation is fine too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
a4fd9f1 to
a6cfa45
Compare
Fixes https://github.com/dotnet/corefx/issues/19694