-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't reference netstandard1.x packages #74199
base: main
Are you sure you want to change the base?
Conversation
... when building from source. This was the only remaining project in roslyn that brought them in.
@ViktorHofer source build is failing |
@MichalStrehovsky just to double check, |
Yeah, I don't think the System.Runtime.Loader would do anything good on netfx. Cc @dotnet/appmodel |
What makes this problematic is that Microsoft.CodeAnalysis.Scripting dynamically instantiates either an AssemblyLoadContext or an AssemblyLoader:
|
cc @jaredpar @MichaelSimons @ericstj The goal is to remove all netstandard1.x package dependencies when building from source (see dotnet/source-build#4482). Roslyn is one of the few remaining repos that bring a netstandard1.x package in. For roslyn it's only a single reference in a single place: See my comments above. It's hard to get rid off that package as roslyn dynamically instantiates either an ALC or AssemblyLoader. |
@tmat, @arkalyanms FYI |
As a workaround you could |
Yes, I considered that. The goal here is to remove all netstandard1.x packages. If we keep the System.Runtime.Loader reference then we would need to continue building it in SBRP including its dependencies. |
The compiler approaches this by representing assembly loading through an interface at the That model was designed into the compiler very early on though. Not sure if the scripting layer can take this approach or not. |
... when building from source.
This was the only remaining project in roslyn that brought them in.
Contributes to dotnet/source-build#4482