Skip to content

AppDomain.AssemblyLoad alternative for AssemblyLoadContext #45155

Answered by PathogenDavid
msedi asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe I'm misunderstanding the question, but you can still use AppDomain.CurrentDomain in .NET Core, you just can't create new ones. You can still use the AppDomain.CurrentDomain.AssemblyLoad event on .NET Core.

AssemblyLoadContext is only meant to replace the isolation mechanisms provided by .NET Framework AppDomains, it doesn't replace AppDomain entirely. (IE: You shouldn't feel like you need to move all code from AppDomain to AssemblyLoadContext.)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by msedi
Comment options

You must be logged in to vote
1 reply
@PathogenDavid
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants