Skip to content

Commit

Permalink
Make NuGet package copy native binaries on windows only
Browse files Browse the repository at this point in the history
The props file added to the NuGet package in #821 makes sure the Windows
native binaries are copied to the correct location. However, as pointed out
in #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 #835
  • Loading branch information
bording committed Feb 21, 2015
1 parent 605b623 commit caded6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuget.package/build/LibGit2Sharp.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ItemGroup Condition=" '$(OS)' == 'Windows_NT' ">
<None Include="$(MSBuildThisFileDirectory)\..\..\lib\net40\NativeBinaries\amd64\git2-e0902fb.dll">
<Link>NativeBinaries\amd64\git2-e0902fb.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down

0 comments on commit caded6e

Please sign in to comment.