libgit2 / libgit2/libgit2sharp
Exception when using it inside a Visual Studio 2022 Extensibility project
未關閉
還沒有人認領這個 Issue。
- 主要語言
- C#
- 星號
- 3.5k
- 分支
- 925
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hello, I'm unable to this this package within my Visual Studio 2022 extension.
Reproduction steps
- Create a new VisualStudio.Extensibiltiy Extension project (VS 2022)
- Add a reference to
<PackageReference Include="LibGit2Sharp" Version="0.30.0"/> - Add
using (var repo = new Repository(repoDir))to a command
Sample project:
ExtensibilityNativeLibraries.zip
Expected behavior
To initialize the repo instance
Actual behavior
Exception
The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
InnerException = {"Unable to load DLL 'git2-a418d9d' or one of its dependencies: Não foi possível encontrar o módulo especificado. (0x8007007E)"}
Version of LibGit2Sharp (release number or SHA1)
0.30.0
Operating system(s) tested; .NET runtime tested
Windows 11, .NET 8
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先開啟 ExtensibilityNativeLibraries.zip,並在 Windows 11 上使用 .NET 8 的 Visual Studio 2022 擴充性專案中重現 PackageReference 設定。追蹤執行 new Repository(repoDir) 時 NativeMethods 的初始化;當 repository 在沒有報告的 native DLL 例外的情況下完成初始化時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- devtools
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100