libgit2 / libgit2/libgit2sharp
Add RID-aware AssemblyLoadContext package
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the proposed custom AssemblyLoadContext, the SourceLink loading code mentioned in the issue, and the current native binary RID mappings. Clarify the package boundary and how RID updates would be maintained before defining what a complete package would contain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100