update PluginAssemblyLoader comment

This commit is contained in:
Jeremy Wu 2021-02-24 21:57:18 +11:00
parent 9e343ebff4
commit 84257aa5d9

View file

@ -36,10 +36,10 @@ namespace Flow.Launcher.Core.Plugin
{
string assemblyPath = dependencyResolver.ResolveAssemblyToPath(assemblyName);
// When resolving dependencies, ignore assembly depenedencies that already exits with Flow.Launcher
// Otherwise duplicate assembly will be loaded, and some weird behavior will occur such as WinRT.dll
// will fail to create
// When resolving dependencies, ignore assembly depenedencies that already exits with Flow.Launcher.
// Otherwise duplicate assembly will be loaded and some weird behavior will occur, such as WinRT.Runtime.dll
// will fail due to loading multiple versions in process, each with their own static instance of registration state
if (assemblyPath == null || ExistsInReferencedPackage(assemblyName))
return null;