Skip to content

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Feb 10, 2025

Contributes to dotnet/sdk#46642

NuGet added a new feature that automatically prunes package and project references that are provided by the shared framework that is targeted.

Resolve the one warning that got emitted when source-building the repository.

Contributes to dotnet/sdk#46642

NuGet added a new feature that automatically prunes package and project references that are provided by the shared framework that is targeted.

Resolve the one warning that got emitted when source-building the repository.
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ObjectPool" />
<PackageReference Include="System.Collections.Immutable" />
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are transport packages which ship this DLL:

But they are only consumed by the SDK, I think, and missing System.Collections.Immutable shouldn't be a problem there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wouldn't be a problem even if the packages would ship publicly. SCI with this given version is already provided by the shared framework. That's why NuGet now flags them as unnecessary package references.

@ViktorHofer ViktorHofer merged commit 0adfd39 into main Feb 10, 2025
12 checks passed
@ViktorHofer ViktorHofer deleted the NuGetPruningReaction branch February 10, 2025 15:29
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Feb 10, 2025
@jjonescz jjonescz modified the milestones: Next, 17.14 P2 Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants