-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Implement platform guards in OperatingSystem class #40457
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
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
|
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. |
src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Outdated
Show resolved
Hide resolved
terrajobst
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
…Platform. it won't compile now as the new guards have not been merged yet (dotnet#40457)
|
/azp run runtime |
|
Azure Pipelines successfully started running 1 pipeline(s). |
src/libraries/System.Runtime.Extensions/tests/System/OperatingSystemTests.cs
Outdated
Show resolved
Hide resolved
* 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 (#40457) * remove OSPlatform.Browser and it's usage
* add Is$OsName methods to OperatingSystem class * add OperatingSystem.*VersionAtLeast methods * add IsOSPlatform and IsOSPlatformVersionAtLeast * add xml comments * address code review suggestions * move TARGET_* defines to a common file
* 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
Contributes to #40111
Fixes #40358