File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -14,27 +14,25 @@ public class GenerateNativeDllNameTask : Task
14
14
public override bool Execute ( )
15
15
{
16
16
var fileName = InputHashFile . GetMetadata ( "FullPath" ) ;
17
- string hash ;
17
+ string libgit2FileName ;
18
18
19
19
using ( var sr = new StreamReader ( fileName ) )
20
20
{
21
- hash = sr . ReadLine ( ) ;
21
+ libgit2FileName = sr . ReadLine ( ) ;
22
22
}
23
23
24
- var shortHash = hash . Substring ( 0 , 7 ) ;
25
-
26
24
var nativeDllName = @"namespace LibGit2Sharp.Core
27
25
{{
28
26
internal static class NativeDllName
29
27
{{
30
- public const string Name = ""git2- {0}"";
28
+ public const string Name = ""{0}"";
31
29
}}
32
30
}}
33
31
" ;
34
32
35
33
using ( var sw = new StreamWriter ( OutputFile ) )
36
34
{
37
- sw . Write ( nativeDllName , shortHash ) ;
35
+ sw . Write ( nativeDllName , libgit2FileName ) ;
38
36
}
39
37
40
38
return true ;
Original file line number Diff line number Diff line change 14
14
<Target Name =" GenerateNativeDllNameCs"
15
15
Inputs =" @(EmbeddedResource)"
16
16
Outputs =" $(NativeDllNamePath)" >
17
- <GenerateNativeDllNameTask InputHashFile =" @(EmbeddedResource)" Condition =" '%(Filename)%(Extension)' == 'libgit2_hash .txt' " OutputFile =" $(NativeDllNamePath)" />
17
+ <GenerateNativeDllNameTask InputHashFile =" @(EmbeddedResource)" Condition =" '%(Filename)%(Extension)' == 'libgit2_filename .txt' " OutputFile =" $(NativeDllNamePath)" />
18
18
</Target >
19
19
20
20
<Target Name =" CleanNativeDllNameCs" >
You can’t perform that action at this time.
0 commit comments