Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Ording <bording@gmail.com>2015-02-21 21:27:14 +0300
committerBrandon Ording <bording@gmail.com>2015-02-21 21:52:42 +0300
commitcaded6e4394933ca31ed2c587ba8fc0abf3ae32a (patch)
treedd42158aeed2eab6f93aa13081bb1f1d66fb1569 /nuget.package
parent605b6235716331bd5c8730ee6b21096e0bbe46ef (diff)
Make NuGet package copy native binaries on windows only
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
Diffstat (limited to 'nuget.package')
-rw-r--r--nuget.package/build/LibGit2Sharp.props2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuget.package/build/LibGit2Sharp.props b/nuget.package/build/LibGit2Sharp.props
index 8ffc28d6..f9460e24 100644
--- a/nuget.package/build/LibGit2Sharp.props
+++ b/nuget.package/build/LibGit2Sharp.props
@@ -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>