libgit2 / libgit2/libgit2sharp
Add RID-aware AssemblyLoadContext package
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
In order to make it easier for people to use LibGit2Sharp from something like an MSBuild task, we should consider adding a separate package that contains a custom AssemblyLoadContext with logic can properly load the right assembly based on the RID of the system. I'm thinking this could be named something like LibGit2Sharp.AssemblyLoadContext.
Doing something like this would be we could update the package as needed whenever we have a change in the set of native binaries.
@tmat Would it be possible to do something like move the code you've written for SourceLink into this proposed package instead? It would be nice to have that in a centralized place for everyone to use, and it would remove the burden on you to know when the RID mappings needed to be updated.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看提议的自定义 AssemblyLoadContext、issue 中提到的 SourceLink 加载代码,以及当前的原生二进制 RID 映射。在确定完整 package 应包含哪些内容之前,先明确 package 的边界以及如何维护 RID 更新。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- build-system, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100