Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 10ad530

Browse files
authored
Simplify NuGet CLI reference (#1138)
1 parent 382511f commit 10ad530

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

NuKeeper/NuKeeper.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
</PropertyGroup>
1414
<ItemGroup>
1515
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
16-
<PackageReference Include="NuGet.CommandLine" Version="5.11.0">
17-
<!-- Warning! This needs to match TfmSpecificPackageFile lower down or packaging will fail -->
18-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
19-
<PrivateAssets>all</PrivateAssets>
20-
</PackageReference>
2116
<PackageReference Include="NuGet.Credentials" Version="5.11.0" />
2217
<PackageReference Include="SimpleInjector" Version="5.3.2" />
2318
<PackageReference Include="SimpleInjector.Integration.ServiceCollection" Version="5.3.0" />
2419
</ItemGroup>
20+
<ItemGroup>
21+
<!-- Ship NuGet CLI -->
22+
<PackageReference Include="NuGet.CommandLine" Version="5.11.0" PrivateAssets="all" ExcludeAssets="all" GeneratePathProperty="true" />
23+
</ItemGroup>
2524
<ItemGroup>
2625
<ProjectReference Include="..\NuKeeper.Abstractions\NuKeeper.Abstractions.csproj" />
2726
<ProjectReference Include="..\NuKeeper.AzureDevOps\NuKeeper.AzureDevOps.csproj" />
@@ -41,7 +40,7 @@
4140
<None Include="..\assets\icon.png" Pack="true" PackagePath="\" />
4241
</ItemGroup>
4342
<ItemGroup>
44-
<TfmSpecificPackageFile Include="$(NuGetPackageRoot)\nuget.commandline\5.11.0\tools\NuGet.exe">
43+
<TfmSpecificPackageFile Include="$(PkgNuGet_CommandLine)\tools\NuGet.exe">
4544
<Pack>true</Pack>
4645
<PackagePath>tools\$(TargetFramework)\any\NuGet.exe</PackagePath>
4746
</TfmSpecificPackageFile>

0 commit comments

Comments
 (0)