cake-build / cake-build/cake

Runtime assembly redirect

Open
#1,569 0 comments 0 reactions 0 assignees View on GitHub
Improvement
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
3h 37m
Merged PRs (30d)
21

Description

Currently, it is problematic to use multiple Cake addins using different versions of the same assembly (most frequently Newtonsoft.Json). Would it make sense to use `AppDomain.CurrentDomain.AssemblyResolve` (in full .Net Framework at least, not sure if there is anything similar in .Net Core) event in this case to redirect to the latest version if there are multiple?

I can try to prepare a PR, I just wonder if this functionality is desirable.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how Cake loads addins and dependencies, then assess whether AppDomain.CurrentDomain.AssemblyResolve applies to full .NET Framework and whether .NET Core has an equivalent. The issue does not name files or tests; done would require a decided, tested approach for resolving conflicting assembly versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.