-
Notifications
You must be signed in to change notification settings - Fork 656
Set System.Collections.Immutable as a private asset #4594
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
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.
Pull Request Overview
This PR reorders the PackageReference for System.Collections.Immutable so that it is correctly picked up as a private asset.
- Moves the System.Collections.Immutable reference above the global PrivateAssets update group
- Removes a duplicate or misplaced reference to System.Collections.Immutable
@@ -17,9 +17,9 @@ | |||
<PackageReference Include="Microsoft.Build.Utilities.Core" /> | |||
<PackageReference Include="Microsoft.Win32.Registry" /> | |||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" /> | |||
<PackageReference Include="System.Collections.Immutable" /> |
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.
[nitpick] The current reference for System.Collections.Immutable is added without an explicit PrivateAssets attribute. Although the global update applies PrivateAssets to all PackageReferences, adding a comment here to explain this behavior could enhance code clarity.
<PackageReference Include="System.Collections.Immutable" /> | |
<PackageReference Include="System.Collections.Immutable" PrivateAssets="All" /> | |
<!-- Explicitly specifying PrivateAssets="All" here for clarity, even though the global update applies it to all PackageReferences. --> |
Copilot uses AI. Check for mistakes.
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
Thank you @joao-genebra for your contribution! |
Description
Changes the order in which
System.Collections.Immutable
is referenced to ensure that it is set as a private assetRelated Issue
#4593
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Checklist: