Skip to content

Commit 514f39d

Browse files
authored
Clarify package pruning in project files documentation (#3532)
1 parent fc69c5f commit 514f39d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ The following properties can be used to modify the pruning behavior.
497497
| RestoreEnablePackagePruning | Enables package pruning for the packages specified with `PrunePackageReference`. This property is per target framework and the valid values are `true` and `false`. Defaults may differ based on the .NET SDK as defined above. |
498498

499499
The .NET SDK predefines the list of packages to be pruned for you.
500+
That list is based on the shared frameworks specified in your project.
501+
Only direct framework references are considered, and pruning data won't be added for frameworks that are brought in [through packages](../reference/nuspec.md#framework-reference-groups).
500502

501503
### How PrunePackageReference works
502504

0 commit comments

Comments
 (0)