diff options
author | Brandon Ording <bording@gmail.com> | 2015-02-24 08:28:04 +0300 |
---|---|---|
committer | Brandon Ording <bording@gmail.com> | 2015-05-16 20:04:34 +0300 |
commit | c1312387b8471a47d975a11e074c24bc78dc2fb6 (patch) | |
tree | 4d12bfdca4b4b21ea085c5067a416eb259a1cbeb /LibGit2Sharp/LibGit2Sharp.csproj | |
parent | 98e6e34639721eca7abfcf896a776b053e0d39e5 (diff) |
Use NativeBinaries package for libgit2 dependency
closes #974, closes #984
Diffstat (limited to 'LibGit2Sharp/LibGit2Sharp.csproj')
-rw-r--r-- | LibGit2Sharp/LibGit2Sharp.csproj | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/LibGit2Sharp/LibGit2Sharp.csproj b/LibGit2Sharp/LibGit2Sharp.csproj index 60b35252..e620bd2c 100644 --- a/LibGit2Sharp/LibGit2Sharp.csproj +++ b/LibGit2Sharp/LibGit2Sharp.csproj @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="..\packages\LibGit2Sharp.NativeBinaries.1.0.25\build\LibGit2Sharp.NativeBinaries.props" Condition="Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.25\build\LibGit2Sharp.NativeBinaries.props')" /> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -355,22 +356,25 @@ <CodeAnalysisDictionary Include="CustomDictionary.xml" /> </ItemGroup> <ItemGroup> - <EmbeddedResource Include="libgit2_hash.txt" /> + <EmbeddedResource Include="libgit2sharp_hash.txt" /> </ItemGroup> <ItemGroup> - <EmbeddedResource Include="libgit2sharp_hash.txt" /> + <None Include="packages.config" /> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="UniqueIdentifier.targets" /> - <PropertyGroup> - <NativeBinariesDirectory>$(MSBuildProjectDirectory)\..\Lib\NativeBinaries</NativeBinariesDirectory> - </PropertyGroup> - <Import Project="CopyWindowsNativeDependencies.targets" /> + <Import Project="NativeDllName.targets" /> <Import Project="ExtraDefine.targets" /> <PropertyGroup> <PreBuildEvent> </PreBuildEvent> </PropertyGroup> + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> + <PropertyGroup> + <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> + </PropertyGroup> + <Error Condition="!Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.25\build\LibGit2Sharp.NativeBinaries.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\LibGit2Sharp.NativeBinaries.1.0.25\build\LibGit2Sharp.NativeBinaries.props'))" /> + </Target> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> |