Skip to content

Commit 68bfa76

Browse files
authored
Clarify package pruning behavior in .NET SDK 10 (#3459)
1 parent b60a5f0 commit 68bfa76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/consume-packages/Package-References-in-Project-Files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ This can often lead to a `System.Text.Json 8.0.0` in a project targeting `.NET 9
470470
Starting in [NuGet version 6.13](..\release-notes\NuGet-6.13.md) and .NET SDK 9.0.200, `PrunePackageReference` enables the pruning of these packages at restore time for .NET SDK based projects.
471471
The first iteration of pruning affected transitive packages only, but starting with .NET SDK 10, package pruning affects direct packages as well.
472472

473-
Package pruning is available as an opt-in feature with the .NET 9 SDK, and is enabled by default for `>= .NET 8.0` frameworks and `>= .NET Standard 2.0` starting with .NET 10 SDK.
473+
Package pruning is available as an opt-in feature with the .NET 9 SDK, and is enabled by default for all frameworks of a project that targets `>= .NET 10.0` in the .NET 10 SDK.
474474

475475
Package pruning is only available with the default dependency resolver as [released in 6.12](#nuget-dependency-resolver).
476476

0 commit comments

Comments
 (0)