Skip to content

Commit

Permalink
Add CentralPackageFloatingVersionsEnabled property to NuGet.targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkl committed Dec 4, 2023
1 parent 5121f59 commit 6809e89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NuGet.Core/NuGet.Build.Tasks/NuGet.targets
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Copyright (c) .NET Foundation. All rights reserved.
<GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter>true</GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter>
<!-- Flag if the Central package file is enabled -->
<_CentralPackageVersionsEnabled Condition="'$(ManagePackageVersionsCentrally)' == 'true' AND '$(CentralPackageVersionsFileImported)' == 'true'">true</_CentralPackageVersionsEnabled>
<!-- Flag indicating if floating versions can be used in central package management -->
<CentralPackageFloatingVersionsEnabled Condition="'$(CentralPackageFloatingVersionsEnabled)' == ''">false</CentralPackageFloatingVersionsEnabled>
</PropertyGroup>

<!--
Expand Down

0 comments on commit 6809e89

Please sign in to comment.