-
Notifications
You must be signed in to change notification settings - Fork 468
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
OSX needs to treated as the same platform as MacOS, everywhere #5012
Merged
buyaa-n
merged 4 commits into
dotnet:release/6.0.1xx-preview4
from
buyaa-n:osx_same_as_macos
Apr 13, 2021
Merged
OSX needs to treated as the same platform as MacOS, everywhere #5012
buyaa-n
merged 4 commits into
dotnet:release/6.0.1xx-preview4
from
buyaa-n:osx_same_as_macos
Apr 13, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## release/6.0.1xx-preview4 #5012 +/- ##
============================================================
- Coverage 95.57% 95.54% -0.04%
============================================================
Files 1177 1188 +11
Lines 269979 273151 +3172
Branches 16362 16537 +175
============================================================
+ Hits 258038 260984 +2946
- Misses 9810 9976 +166
- Partials 2131 2191 +60 |
mavasani
reviewed
Apr 12, 2021
...ft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzerTests.GuardedCallsTests.cs
Outdated
Show resolved
Hide resolved
mavasani
approved these changes
Apr 12, 2021
jeffhandley
requested changes
Apr 12, 2021
...tAnalyzers/Core/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzer.cs
Outdated
Show resolved
Hide resolved
...tAnalyzers/Core/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzer.cs
Outdated
Show resolved
Hide resolved
jeffhandley
approved these changes
Apr 12, 2021
Merged
This was referenced Aug 30, 2021
Merged
This was referenced Sep 10, 2021
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OSX needs to treated as the same platform as MacOS, everywhere
Somehow the code handling this logic lost 🙅 (i remember had it handled in my first version, I guess it is lost in the design change refactoring result).
The brute force way for treating
OSX
asMacOS
would add additional check for each OS platform check and platform lookup, which don't like to do. So instead:MacOs
in the internal cache, so no need to addOSX
specific special handling anymoreOSX
specific API used from an incompatible call site then developers would get a warning that the API is supported onMacOS
instead ofOSX
. Handling this issue with reporting the platform asMacOS/OSX
- meaning it can beMacOS
orOSX
Example: