libgit2 / libgit2/libgit2sharp
Support for MacCatalyst
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Reproduction steps
Created a new .NET MAUI app and launched it with MacCatalyst. When making a call to Repository.IsValid(projectPath); it will throw the following. Looking at the output folder, the runtimes are not copied there. I have tried manipulating the output folder, but it doesn't seem to be able to resolve the native library properly.
{System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
---> System.DllNotFoundException: git2-e632535
at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary() in **/_/LibGit2Sharp/Core/NativeMet…}**
Running the same command via a console application (.NET 7.0 CLI, not MacCatalyst) executes as expected.
Expected behavior
Native libraries should be copied to the output folder and made available, if possible, for the MacCatalyst platform.
Actual behavior
Native libraries are not copied over and cannot be referenced on MacCatalyst.
Version of LibGit2Sharp (release number or SHA1)
0.27.2
Operating system(s) tested; .NET runtime tested
.NET 7.0 via MacCatalyst-x64 (Mac M1).
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、.NET 7 MacCatalyst-x64 アプリで Repository.IsValid(projectPath) を再現し、Core/NativeMethods と出力フォルダーを調べます。MacCatalyst の出力を、動作するコンソール アプリケーションのネイティブ ランタイム ファイルと比較します。完了の条件は、必要なネイティブ ライブラリが MacCatalyst 上でコピーされ、解決されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- build-system, desktop
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100