libgit2 / libgit2/libgit2sharp
Exception when using it inside a Visual Studio 2022 Extensibility project
まだ誰も着手していません。
- 主要言語
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず ExtensibilityNativeLibraries.zip を開き、Windows 11 上の .NET 8 を使用する Visual Studio 2022 拡張プロジェクトで PackageReference の設定を再現します。new Repository(repoDir) の実行時に NativeMethods の初期化を追跡します。報告されたネイティブ DLL 例外が発生せずにリポジトリが初期化されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100