Skip to content

Commit 0adfd39

Browse files
authored
React to NuGet package pruning warnings (#11471)
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.
1 parent 55fb946 commit 0adfd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<ItemGroup>
1515
<PackageReference Include="Microsoft.Extensions.ObjectPool" />
16-
<PackageReference Include="System.Collections.Immutable" />
16+
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
1717
</ItemGroup>
1818

1919
<ItemGroup Label="String Resources">

0 commit comments

Comments
 (0)