File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,21 @@ Push-Location $libgit2Directory
82
82
83
83
Pop-Location
84
84
85
- sc - Encoding ASCII (Join-Path $projectDirectory " nuget.package\libgit2\libgit2_hash.txt" ) $sha
86
-
87
85
if (! [string ]::IsNullOrEmpty($libgit2Name )) {
88
86
$binaryFilename = $libgit2Name
89
87
} else {
90
88
$binaryFilename = " git2-" + $sha.Substring (0 , 7 )
91
89
}
92
90
91
+ sc - Encoding ASCII (Join-Path $projectDirectory " nuget.package\libgit2\libgit2_hash.txt" ) $sha
92
+ sc - Encoding ASCII (Join-Path $projectDirectory " nuget.package\libgit2\libgit2_filename.txt" ) $binaryFilename
93
+
93
94
$buildProperties = @"
94
95
<?xml version="1.0" encoding="utf-8"?>
95
96
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
96
97
<ItemGroup>
97
98
<EmbeddedResource Include="`$ (MSBuildThisFileDirectory)\..\libgit2\libgit2_hash.txt" />
99
+ <EmbeddedResource Include="`$ (MSBuildThisFileDirectory)\..\libgit2\libgit2_filename.txt" />
98
100
</ItemGroup>
99
101
<ItemGroup>
100
102
<None Condition="Exists('`$ (MSBuildThisFileDirectory)\..\libgit2\windows\amd64\$binaryFilename .dll')" Include="`$ (MSBuildThisFileDirectory)\..\libgit2\windows\amd64\$binaryFilename .dll">
You can’t perform that action at this time.
0 commit comments