-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix process framework references crash when null RID is passed #50682
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
Fix process framework references crash when null RID is passed #50682
Conversation
src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs
Outdated
Show resolved
Hide resolved
src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.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.
LGTM, but I don't know this part of the SDK that well.
src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.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.
Is it possible to add a test case for the case that was crashing? Or does that require workloads installed which we won't have in the test environment?
definitely - working on boosting coverage of this Task right now. Copilot's doing a great job helping synthesize some test cases. |
ee40d57
to
bbb2c31
Compare
Added a bunch of additional test coverage |
Fix #50680
This looks like a regression caused by #50455 - clearly we have some testing gaps.
If this Target ever executes in a context where no single-RID is specified, some RID-specific assets shouldn't be processed for that single-RID. Instead, processing for any passed-in RIDs should wait until the part of the processing where all of the
RuntimeIdentifiers
are iterated over.To make this easier to see/check, I enabled nullability for this Target and supporting logic.