-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Remove new platform members from OSPlatform #40373
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
Conversation
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
|
I've added the no merge label as I simply need to revert more changes (new methods added to RuntimeInformation && OrdinalIgnoreCaseChange) |
|
@terrajobst / @adamsitnik -- I propose that we leave Here are a couple of PRs that had added references to
I was considering a suggestion that we change the reference to |
|
I would definitely feel more comfortable if we left |
|
I don't think it's that bad, there are only two usages of |
|
Note that aspnetcore is also already using |
|
Yeah we can change them back to using |
|
@buyaa-n @jeffhandley PTAL. I've removed the methods and properties that I've recently added. Once #40457 gets merged I am going to send another PR that will make |
....InteropServices.RuntimeInformation/ref/System.Runtime.InteropServices.RuntimeInformation.cs
Outdated
Show resolved
Hide resolved
buyaa-n
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.
LGTM, thanks!
|
We'll need to fix dotnet/aspnetcore as well https://github.com/dotnet/aspnetcore/search?q=OSPlatform.Browser&unscoped_q=OSPlatform.Browser |
...vices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/OSPlatform.cs
Outdated
Show resolved
Hide resolved
…Platform. it won't compile now as the new guards have not been merged yet (dotnet#40457)
src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckPlatformTests.cs
Outdated
Show resolved
Hide resolved
…n/tests/CheckPlatformTests.cs
|
The CI failure is unrelated ( |
|
I've sent a PR to ASP.NET: dotnet/aspnetcore#24652 |
* Remove new platform members from OSPlatform * remove IsOSPlatformEarlierThan and IsOSPlatformOrLater methods * remove unused resource and dependency * delegate RuntimeInformation.IsOSPlatform to call OperatingSystem.IsOSPlatform. it won't compile now as the new guards have not been merged yet (dotnet#40457) * remove OSPlatform.Browser and it's usage
The spec mentions removing also the "Browser": #40111 (comment)
I am not sure about this since it was added 4 months ago together with
Architecture.Wasmin #34781cc @terrajobst