1313 <PackageIcon >cake-contrib-medium.png</PackageIcon >
1414 <PackageProjectUrl >http://github.com/dotnet/Nerdbank.GitVersioning</PackageProjectUrl >
1515 <SignAssembly >false</SignAssembly >
16- <!-- We include the whole OutputPath in this tools package. -->
17- <IncludeBuildOutput >false</IncludeBuildOutput >
16+
1817 <TargetsForTfmSpecificContentInPackage >$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage >
18+ <LibGit2SharpNativeBinaries >$(NuGetPackageRoot)libgit2sharp.nativebinaries\$(LibGit2SharpNativeVersion)\</LibGit2SharpNativeBinaries >
19+ <CopyLocalLockFileAssemblies >true</CopyLocalLockFileAssemblies >
1920 </PropertyGroup >
2021
2122 <!-- This is a tools package and should express no dependencies. -->
3637
3738 <ItemGroup >
3839 <None Include =" cake-contrib-medium.png" Pack =" true" PackagePath =" " />
40+
41+ <!-- Include native binaries -->
42+ <None Include =" $(LibGit2SharpNativeBinaries)runtimes\**\*.*" Pack =" true" PackagePath =" lib\netstandard2.0\lib\" LinkBase =" lib" />
43+
44+ <!-- Additional copies to work around DllNotFoundException on Mono (https://github.com/AArnott/Nerdbank.GitVersioning/issues/222) -->
45+ <None Include =" $(LibGit2SharpNativeBinaries)runtimes\osx\native\*.dylib" Pack =" true" PackagePath =" lib\netstandard2.0\lib\osx\" LinkBase =" lib\osx" />
46+ <None Include =" $(LibGit2SharpNativeBinaries)runtimes\linux-x64\native\*.so" Pack =" true" PackagePath =" lib\netstandard2.0\lib\linux\x86_64\" LinkBase =" lib\linux\x86_64" />
47+ <None Include =" $(LibGit2SharpNativeBinaries)runtimes\win-x64\native\*.dll" Pack =" true" PackagePath =" lib\netstandard2.0\lib\win32\x64\" LinkBase =" lib\win32\x64" />
48+ <None Include =" $(LibGit2SharpNativeBinaries)runtimes\win-x86\native\*.dll" Pack =" true" PackagePath =" lib\netstandard2.0\lib\win32\x86\" LinkBase =" lib\win32\x86" />
3949 </ItemGroup >
4050
4151 <ItemGroup >
4454
4555 <Target Name =" PackBuildOutputs" DependsOnTargets =" SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup" >
4656 <ItemGroup >
47- <TfmSpecificPackageFile Include =" $(OutputPath)\**\*" Exclude =" $(OutputPath)\**\*.xml;$(OutputPath)\**\*.pdb;$(OutputPath)\**\Cake.Core.dll" >
48- <PackagePath >lib\$(TargetFramework)\</PackagePath >
57+ <TfmSpecificPackageFile
58+ Include ="
59+ $(OutputPath)LibGit2Sharp.dll*;
60+ $(OutputPath)Nerdbank.GitVersioning.*dll;
61+ $(OutputPath)Newtonsoft.Json.dll;
62+ $(OutputPath)Validation.dll;
63+ "
64+
65+ Exclude ="
66+ $(OutputPath)Microsoft.*.dll
67+ $(OutputPath)System.*.dll
68+ "
69+ >
70+ <PackagePath >lib\$(TargetFramework)</PackagePath >
4971 </TfmSpecificPackageFile >
5072 </ItemGroup >
5173 </Target >
52- </Project >
74+ </Project >
0 commit comments