-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Fix APIDiff to include NETCore references for AspNetCore and WindowsDesktop #9989
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
…iffs Co-authored-by: ericstj <[email protected]>
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.
This LGTM. I pulled it down and ran the changes and it resolved the reported issue.
Does this file need to show any diff at all? My understanding is nothing changed in such public APIs, or is this because the APIs moved to a new place? Refers to: release-notes/10.0/preview/preview6/api-diff/Microsoft.AspNetCore.App/10.0-preview6_System.Formats.Cbor.md:2 in 5485e54. [](commit_id = 5485e54, deletion_comment = False) |
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 a minor question. LGTM otherwise.
|
It was added to the shared framework, which is why all of it's API shows as an addition. |
These all appear to be existing issues with the script. I filed #9990 to fix them. |
@ericstj could you also regenerate diffs for previous previews? And also look at #9821 (comment) |
Sure, let me give that a try. |
The APIDiff script
RunApiDiff.ps1
was not passing the reference path to theMicrosoft.NETCore.App.Ref
package when running diffs on AspNetCore and WindowsDesktop SDKs. This caused Roslyn to lack core assembly references, leading to incorrect symbol information for enums, basic types, and other fundamental .NET constructs.Changes Made
Modified
ProcessSdk
functionMicrosoft.NETCore.App.Ref
packages when processing AspNetCore and WindowsDesktop SDKsUpdated
RunApiDiff
functionbeforeReferenceFolder
andafterReferenceFolder
parameters-rb
and-ra
flags in the API diff command when reference folders are providedExample of the fix in action:
Before (missing core references):
After (with core references):
Testing
This ensures that API diffs for AspNetCore and WindowsDesktop will now have proper symbol information and can correctly decode enum values and other fundamental types.
Fixes #9988.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.