Skip to content

Commit 915e841

Browse files
committed
Add native nuget package from myget feed
Currently hosted at: https://www.myget.org/F/bording-libgit2/
1 parent a1dff50 commit 915e841

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\LibGit2Sharp.NativeBinaries.0.21.0.176\build\LibGit2Sharp.NativeBinaries.props" Condition="Exists('..\packages\LibGit2Sharp.NativeBinaries.0.21.0.176\build\LibGit2Sharp.NativeBinaries.props')" />
34
<PropertyGroup>
45
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
56
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -13,6 +14,7 @@
1314
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
1415
<FileAlignment>512</FileAlignment>
1516
<TargetFrameworkProfile />
17+
<NuGetPackageImportStamp>e038d3a3</NuGetPackageImportStamp>
1618
</PropertyGroup>
1719
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1820
<DebugSymbols>true</DebugSymbols>
@@ -349,13 +351,22 @@
349351
<ItemGroup>
350352
<EmbeddedResource Include="libgit2sharp_hash.txt" />
351353
</ItemGroup>
354+
<ItemGroup>
355+
<None Include="packages.config" />
356+
</ItemGroup>
352357
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
353358
<Import Project="UniqueIdentifier.targets" />
354359
<Import Project="ExtraDefine.targets" />
355360
<PropertyGroup>
356361
<PreBuildEvent>
357362
</PreBuildEvent>
358363
</PropertyGroup>
364+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
365+
<PropertyGroup>
366+
<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>
367+
</PropertyGroup>
368+
<Error Condition="!Exists('..\packages\LibGit2Sharp.NativeBinaries.0.21.0.176\build\LibGit2Sharp.NativeBinaries.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\LibGit2Sharp.NativeBinaries.0.21.0.176\build\LibGit2Sharp.NativeBinaries.props'))" />
369+
</Target>
359370
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
360371
Other similar extension points exist, see Microsoft.Common.targets.
361372
<Target Name="BeforeBuild">

LibGit2Sharp/packages.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="LibGit2Sharp.NativeBinaries" version="0.21.0.176" targetFramework="net40" />
4+
</packages>

0 commit comments

Comments
 (0)