Skip to content

Commit eccb8bd

Browse files
committed
Circumvent around nuget packages.
1 parent f85d882 commit eccb8bd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<!--
34
<Import Project="..\packages\LibGit2Sharp.NativeBinaries.1.0.51\build\LibGit2Sharp.NativeBinaries.props" Condition="Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.51\build\LibGit2Sharp.NativeBinaries.props')" />
5+
-->
46
<PropertyGroup>
57
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
68
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -372,9 +374,11 @@
372374
<ItemGroup>
373375
<EmbeddedResource Include="libgit2sharp_hash.txt" />
374376
</ItemGroup>
377+
<!--
375378
<ItemGroup>
376379
<None Include="packages.config" />
377380
</ItemGroup>
381+
-->
378382
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
379383
<Import Project="UniqueIdentifier.targets" />
380384
<Import Project="NativeDllName.targets" />
@@ -383,12 +387,17 @@
383387
<PreBuildEvent>
384388
</PreBuildEvent>
385389
</PropertyGroup>
390+
<ItemGroup>
391+
<EmbeddedResource Include="$(MSBuildThisFileDirectory)\..\..\libgit-binary\libgit2_hash.txt" />
392+
</ItemGroup>
393+
<!--
386394
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
387395
<PropertyGroup>
388396
<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>
389397
</PropertyGroup>
390398
<Error Condition="!Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.51\build\LibGit2Sharp.NativeBinaries.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\LibGit2Sharp.NativeBinaries.1.0.51\build\LibGit2Sharp.NativeBinaries.props'))" />
391399
</Target>
400+
-->
392401
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
393402
Other similar extension points exist, see Microsoft.Common.targets.
394403
<Target Name="BeforeBuild">

0 commit comments

Comments
 (0)