Fix Environment.OSVersion.Platform output on MacOSX#19697
Fix Environment.OSVersion.Platform output on MacOSX#19697stephentoub merged 1 commit intodotnet:masterfrom
Conversation
259be7a to
71f0a52
Compare
|
test? |
|
I thought returning #11878 |
|
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.
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.
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.
a4fd9f1 to
a6cfa45
Compare
Fixes https://github.com/dotnet/corefx/issues/19694