Skip to content

Commit

Permalink
Adding transitive dependency pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
Keboo committed Jan 16, 2024
1 parent 8d34c85 commit a0ea39e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion templates/Console/ConsoleApp/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
This enabled central package management.
This allows for controling all NuGet packages within the Directory.Packages.props file
See https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management
See https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management?WT.mc_id=DT-MVP-5003472
-->
<Project>
<!--
Expand All @@ -11,6 +11,8 @@
<!-- This property enables the Central Package Management feature -->
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management?WT.mc_id=DT-MVP-5003472#transitive-pinning -->
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<!--
This defines the set of centrally managed packages.
Expand Down
4 changes: 3 additions & 1 deletion templates/Library/NuGet/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
This enabled central package management.
This allows for controling all NuGet packages within the Directory.Packages.props file
See https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management
See https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management?WT.mc_id=DT-MVP-5003472
-->
<Project>
<!--
Expand All @@ -11,6 +11,8 @@
<!-- This property enables the Central Package Management feature -->
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management?WT.mc_id=DT-MVP-5003472#transitive-pinning -->
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<!--
This defines the set of centrally managed packages.
Expand Down
4 changes: 3 additions & 1 deletion templates/WPF/WpfApp/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
This enabled central package management.
This allows for controling all NuGet packages within the Directory.Packages.props file
See https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management
See https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management?WT.mc_id=DT-MVP-5003472
-->
<Project>
<!--
Expand All @@ -12,6 +12,8 @@
<!-- This property enables the Central Package Management feature -->
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management?WT.mc_id=DT-MVP-5003472#transitive-pinning -->
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>

<!--
Expand Down

0 comments on commit a0ea39e

Please sign in to comment.