-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The entry point "git_libgit2_init" was not found in the DLL "git2-a418d9d" #2126
Comments
I've just tried using the latest packages with a If you can provide me with a sample application that reproduces the problem, I can take another look at it. |
[lib2git_debug.zip] I added a simple sample. The proj conf is 1:1 to my real code but configured as a consoleApp instead of a assembly only. its net48, c#7 |
The project as you zipped it up does not compile. I was able to make it work by fixing up the NuGet package locations in the project file, and after doing so, the project compiled and ran just fine on my machine. If I had to take a wild guess (and at this point that's all I can really do), it seems like you've got a corrupted version of the libgit2 binaries. |
Or you're using Windows on ARM? |
Ah, interesting. |
i will check if i find a way to check if the binaries are fine. No i use Winx64 not ARM. |
Hi,
I try to use LibGit2Sharp within my .NetFw 4.8 Project and stuck with an error when trying to use the lib.
It seems to not be able to load/read from the NativeLibaries file correctly.
Reproduction steps:
Add nuget-Packages to your project:
Build will create files in the output directory as expected "/lib/win32/x64/git2-a418d9d.dll"
Call Any Method. For example: Repository.Clone(pullurl, workingdir);
Expected behavior:
Execute of "clone" command sucessfully finished.
Actual behavior:
The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
The Stacktrace:
Unexpected exception occurred: System.TypeInitializationException: The type initializer for "LibGit2Sharp.Core.NativeMethods" threw an exception. ---> System.EntryPointNotFoundException: The entry point "git_libgit2_init" was not found in the DLL "git2-a418d9d". at LibGit2Sharp.Core.NativeMethods.git_libgit2_init() at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()...
Version of LibGit2Sharp
0.30.0
Version of NativeBinaries
2.0.322
OS: Windows 10 based
.NetFW: 4.8 C#7 (SDK 6 & 8 installed)
The text was updated successfully, but these errors were encountered: