-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add platform-specific attributes #38604
Add platform-specific attributes #38604
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. |
Is the branch right to get in net5.0? Should I keep the comments? These files in the right location? |
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 otherwise.
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MinimumOSAttribute.cs
Outdated
Show resolved
Hide resolved
@wli3 Thanks! I'm reviewing. I was commenting with some suggestions to convert to XML docs, and I'm also rewriting some of the comments to be more docs-ready than what was captured in the spec, and I saw you've already converted to XML comments.. I don't think we did a great job on the spec review capturing final names, so I'm going to call in @terrajobst on my review to confirm a couple details there too. We'll want to get @bartonjs's review too. And yes, this is the right branch to make net5.0. |
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MinimumOSAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MinimumOSAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MinimumOSAttribute.cs
Outdated
Show resolved
Hide resolved
...es/System.Private.CoreLib/src/System/Runtime/InteropServices/ObsoletedInPlatformAttribute.cs
Outdated
Show resolved
Hide resolved
...es/System.Private.CoreLib/src/System/Runtime/InteropServices/ObsoletedInPlatformAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/PlatformAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/PlatformAttribute.cs
Outdated
Show resolved
Hide resolved
...ries/System.Private.CoreLib/src/System/Runtime/InteropServices/RemovedInPlatformAttribute.cs
Outdated
Show resolved
Hide resolved
...ries/System.Private.CoreLib/src/System/Runtime/InteropServices/RemovedInPlatformAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MinimumOSAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/PlatformAttribute.cs
Outdated
Show resolved
Hide resolved
...es/System.Private.CoreLib/src/System/Runtime/InteropServices/ObsoletedInPlatformAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/PlatformAttribute.cs
Outdated
Show resolved
Hide resolved
...ries/System.Private.CoreLib/src/System/Runtime/InteropServices/RemovedInPlatformAttribute.cs
Outdated
Show resolved
Hide resolved
...braries/System.Private.CoreLib/src/System/Runtime/InteropServices/TargetPlatformAttribute.cs
Outdated
Show resolved
Hide resolved
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.
I left some comments on the naming/API shape. I have updated the review comment to include the agreed upon shape for all APIs. #33331 (comment)
…pServices/MinimumOSAttribute.cs Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
…pServices/ObsoletedInPlatformAttribute.cs Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
I resolved all but the unit tests. |
I cannot push to dotnet/runtime so i send the PR from my own fork. Please feel free to start a different PR if you cannot push to my branch |
…ul/add-in-platform-specific-attribute
8f5bda5
to
c16ab65
Compare
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/OSPlatformAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime/tests/System/Runtime/Versioning/OSPlatformAttributeTests.cs
Show resolved
Hide resolved
@wli3 thanks! We don't push to dotnet/runtime, we send PR from our fork just as you did, i guess you have the merge capability, as all comments are resolved i think we can merge it now |
@buyaa-n I don't have the merge button either. @jeffhandley could you merge it? |
🎉 thank you everyone! |
Spec #33331