Skip to content
Discussion options

You must be logged in to vote

@maxima120 the primary issue here is that for the split case you keep the MyAssemblyLoader reference in the alc variable after calling the Unload method. Unloading depends on GC collecting the AssemblyLoadContext, all the assemblies, instances of data types from those assemblies etc. Until all of these are collected, the unload cannot be completed. I think that if you assigned null to it right after calling the TestUnload22 in Button2_Click, it would work (unless I've missed some other issue).

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by maxima120
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