8000 Make NuGet package copy native binaries on windows only · thatfrankdev/libgit2sharp@caded6e · GitHub
[go: up one dir, main page]

Skip to content

Commit caded6e

Browse files
committed
Make NuGet package copy native binaries on windows only
The props file added to the NuGet package in libgit2#821 makes sure the Windows native binaries are copied to the correct location. However, as pointed out in libgit2#835, this now happens even when the package is installed on a non-Windows platform. This can be prevented by adding a condition to the imported ItemGroup that makes it be ignored when running on a non-Windows platform. Closes libgit2#835
1 parent 605b623 commit caded6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nuget.package/build/LibGit2Sharp.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<ItemGroup>
3+
<ItemGroup Condition=" '$(OS)' == 'Windows_NT' ">
44
<None Include="$(MSBuildThisFileDirectory)\..\..\lib\net40\NativeBinaries\amd64\git2-e0902fb.dll">
55
<Link>NativeBinaries\amd64\git2-e0902fb.dll</Link>
66
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)
0