libgit2 / libgit2/libgit2sharp

Add RID-aware AssemblyLoadContext package

未關閉
#1,649 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先檢視提議的自訂 AssemblyLoadContext、issue 中提到的 SourceLink 載入程式碼,以及目前的原生二進位檔 RID 對應。在定義完整 package 應包含哪些內容之前,先釐清 package 的邊界,以及應如何維護 RID 更新。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp
領域
build-system, tooling
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。