Skip to content

Commit ec26ac1

Browse files
committed
Simplify packaged content
1 parent 1b23e88 commit ec26ac1

File tree

1 file changed

+11
-25
lines changed

1 file changed

+11
-25
lines changed

src/Cake.GitVersioning/Cake.GitVersioning.csproj

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
<PackageTags>git commit versioning version assemblyinfo</PackageTags>
1111
<PackageProjectUrl>http://github.com/aarnott/Nerdbank.GitVersioning</PackageProjectUrl>
1212
<SignAssembly>false</SignAssembly>
13+
14+
<!-- We include the whole OutputPath in this tools package. -->
15+
<IncludeBuildOutput>false</IncludeBuildOutput>
16+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
1317
</PropertyGroup>
1418

1519
<!-- This is a tools package and should express no dependencies. -->
@@ -31,31 +35,13 @@
3135
<ProjectReference Include="..\NerdBank.GitVersioning\NerdBank.GitVersioning.csproj" />
3236
</ItemGroup>
3337

34-
<ItemGroup>
35-
<Content Include="$(OutputPath)\NerdBank.GitVersioning.dll">
36-
<PackagePath>lib\$(TargetFramework)\</PackagePath>
37-
<Pack>true</Pack>
38-
</Content>
39-
40-
<Content Include="$(OutputPath)\LibGit2Sharp.dll">
41-
<PackagePath>lib\$(TargetFramework)</PackagePath>
42-
<Pack>true</Pack>
43-
</Content>
44-
<Content Include="$(OutputPath)\lib\**\*">
45-
<PackagePath>lib\$(TargetFramework)\lib</PackagePath>
46-
<Pack>true</Pack>
47-
</Content>
48-
49-
<Content Include="$(OutputPath)\Newtonsoft.Json.dll">
50-
<PackagePath>lib\$(TargetFramework)</PackagePath>
51-
<Pack>true</Pack>
52-
</Content>
53-
54-
<Content Include="$(OutputPath)\Validation.dll">
55-
<PackagePath>lib\$(TargetFramework)</PackagePath>
56-
<Pack>true</Pack>
57-
</Content>
58-
</ItemGroup>
38+
<Target Name="PackBuildOutputs" DependsOnTargets="SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup">
39+
<ItemGroup>
40+
<TfmSpecificPackageFile Include="$(OutputPath)\**\*" Exclude="$(OutputPath)\**\*.xml;$(OutputPath)\**\*.pdb;$(OutputPath)\**\Cake.Core.dll">
41+
<PackagePath>lib\$(TargetFramework)\</PackagePath>
42+
</TfmSpecificPackageFile>
43+
</ItemGroup>
44+
</Target>
5945

6046
<Target Name="SetNuSpecProperties" BeforeTargets="GenerateNuspec" DependsOnTargets="GetBuildVersion">
6147
<PropertyGroup>

0 commit comments

Comments
 (0)