Skip to content

Commit 1b23e88

Browse files
committed
Suppress package dependencies in Cake package
1 parent d5c72e1 commit 1b23e88

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

src/Cake.GitVersioning/Cake.GitVersioning.csproj

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,46 @@
1212
<SignAssembly>false</SignAssembly>
1313
</PropertyGroup>
1414

15+
<!-- This is a tools package and should express no dependencies. -->
16+
<ItemDefinitionGroup>
17+
<ProjectReference>
18+
<PrivateAssets>all</PrivateAssets>
19+
</ProjectReference>
20+
<PackageReference>
21+
<PrivateAssets>all</PrivateAssets>
22+
</PackageReference>
23+
</ItemDefinitionGroup>
24+
1525
<ItemGroup>
1626
<PackageReference Include="Cake.Core" Version="0.26.0" />
1727
<PackageReference Include="Nerdbank.GitVersioning.LKG" Version="1.6.20-beta-gfea83a8c9e" />
1828
</ItemGroup>
1929

2030
<ItemGroup>
21-
<ProjectReference Include="..\NerdBank.GitVersioning\NerdBank.GitVersioning.csproj" PrivateAssets="true" />
31+
<ProjectReference Include="..\NerdBank.GitVersioning\NerdBank.GitVersioning.csproj" />
2232
</ItemGroup>
23-
33+
2434
<ItemGroup>
2535
<Content Include="$(OutputPath)\NerdBank.GitVersioning.dll">
2636
<PackagePath>lib\$(TargetFramework)\</PackagePath>
2737
<Pack>true</Pack>
2838
</Content>
29-
30-
<Content Include="$(OutputPath)\LibGit2Sharp.dll">
39+
40+
<Content Include="$(OutputPath)\LibGit2Sharp.dll">
3141
<PackagePath>lib\$(TargetFramework)</PackagePath>
3242
<Pack>true</Pack>
3343
</Content>
3444
<Content Include="$(OutputPath)\lib\**\*">
3545
<PackagePath>lib\$(TargetFramework)\lib</PackagePath>
3646
<Pack>true</Pack>
3747
</Content>
38-
39-
<Content Include="$(OutputPath)\Newtonsoft.Json.dll">
48+
49+
<Content Include="$(OutputPath)\Newtonsoft.Json.dll">
4050
<PackagePath>lib\$(TargetFramework)</PackagePath>
4151
<Pack>true</Pack>
4252
</Content>
43-
44-
<Content Include="$(OutputPath)\Validation.dll">
53+
54+
<Content Include="$(OutputPath)\Validation.dll">
4555
<PackagePath>lib\$(TargetFramework)</PackagePath>
4656
<Pack>true</Pack>
4757
</Content>

0 commit comments

Comments
 (0)