Merge branch 'AvoidDuplicateAssemblyLoad' of github.com:taooceros/Flow.Launcher into AvoidDuplicateAssemblyLoad

This commit is contained in:
弘韬 张 2021-02-24 20:38:59 +08:00
commit 36678059a0

View file

@ -41,9 +41,8 @@ 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
// 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;