libgit2 / libgit2/libgit2sharp
Support for MacCatalyst
还没有人认领这个 Issue。
- 主要语言
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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