dotnetcore / dotnetcore/FlubuCore

Replace hardcoded .net assembly references with DependencyContext-based resolution

Open
#369 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
937
Forks
99
PR merge metrics
No merged PRs in 30d

Description

ScriptLoader.GetDefaultReferences() hardcodes ~40 individual System.* assembly references for Roslyn script compilation. When a user's build script needs an assembly not in this
list, it fails with cryptic CS0012/CS0246 compilation errors.

Use DependencyContext.Default.CompileLibraries to resolve compile-time references from the host application's .deps.json at runtime. This gives the full set of framework references the host was compiled against, without hardcoding.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.