The entry point "git_libgit2_init" was not found in the DLL "git2-a418d9d"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 32/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- csharp, git
- Lĩnh vực
- operating-systems, tooling
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi với LibGit2Sharp 0.30.0 và NativeBinaries 2.0.322 trên Windows 10 với .NET Framework 4.8. Theo dõi LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary và kiểm tra DLL native tại lib/win32/x64/git2-a418d9d.dll, tập trung vào entry point git_libgit2_init bị thiếu. Hoàn tất khi Repository.Clone thực thi thành công mà không có TypeInitializationException.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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:
<package id="LibGit2Sharp" version="0.30.0" />
<package id="LibGit2Sharp.NativeBinaries" version="2.0.322" />
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)
- Ngôn ngữ chính
- C#
- Star
- 3.5k
- Fork
- 925
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của libgit2/libgit2sharp
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
libgit2/libgit2sharp#2193 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
libgit2/libgit2sharp#2192 · 1 bình luận ·
-
Website is down Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
libgit2/libgit2sharp#2191 · 2 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
libgit2/libgit2sharp#2189 · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
libgit2/libgit2sharp#2187 · 2 bình luận ·
Tất cả issue của libgit2/libgit2sharp
Issue tương tự
-
Status: Waiting triage Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
nanoframework/Home#1857 ·
-
kind/bug kind/regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
unoplatform/uno.toolkit.ui#1646 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nightscout/nocturne#1379 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
elastic/esql-dotnet#47 ·
-
port: add go-steam fork Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100