dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7k stars 1.16k forks source link

AssemblyLoadContext - Assemblies with WPF Window Cannot Be Unloaded #6247

Open ryan-weil opened 2 years ago

ryan-weil commented 2 years ago

Problem description: AssemblyLoadContext's unload method fails (does not garbage collect/unload the assembly) when the assembly has a WPF window. There is a thread about this issue here in the main dotnet runtime GitHub, but they recommended someone create a thread in the WPF GitHub .

lindexi commented 2 years ago

See https://github.com/dotnet/wpf/issues/1764

ryan-weil commented 2 years ago

See #1764

I see. Well, I hope this is planning to be fixed, because from what I understand at this point it would be accurate to say that there is physically no way to create GUI plugins that can be unloaded in any .NET UI Framework right now. Correct?