8000 Remove windows native extension from platform invocation methods defi… · joncham/libgit2sharp@1997c73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1997c73

Browse files
committed
Remove windows native extension from platform invocation methods definition
Switched back to Cmake compiled binaries as it looks like Jenkins is chokes on waf compiled ones.
1 parent 0e09872 commit 1997c73

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Lib/git2-0.dll

-136 KB
Binary file not shown.

Lib/git2.dll

174 KB
Binary file not shown.

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace LibGit2Sharp.Core
55
{
66
internal static class NativeMethods
77
{
8-
const string libgit2 = "git2-0.dll";
8+
private const string libgit2 = "git2";
99

1010
[DllImport(libgit2)]
1111
public static extern IntPtr git_blob_rawcontent(IntPtr blob);

LibGit2Sharp/Core/UnSafeNativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace LibGit2Sharp.Core
55
{
66
internal static unsafe class UnSafeNativeMethods
77
{
8-
private const string libgit2 = "git2-0.dll";
8+
private const string libgit2 = "git2";
99

1010
[DllImport(libgit2)]
1111
public static extern int git_reference_listall(git_strarray* array, RepositorySafeHandle repo, GitReferenceType flags);

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
<CodeAnalysisDictionary Include="CustomDictionary.xml" />
107107
</ItemGroup>
108108
<ItemGroup>
109-
<Content Include="..\Lib\git2-0.dll">
110-
<Link>git2-0.dll</Link>
109+
<Content Include="..\Lib\git2.dll">
110+
<Link>git2.dll</Link>
111111
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
112112
</Content>
113113
</ItemGroup>

0 commit comments

Comments
 (0)
0