diff --git a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioAnalyzer.cs b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioAnalyzer.cs index 2e9699bb782b4c158e93f564aa515fd6861ff4f5..43ce0dc333beee1e095f2f7244c575535e9e1cba 100644 --- a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioAnalyzer.cs +++ b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioAnalyzer.cs @@ -18,6 +18,8 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem internal sealed class VisualStudioAnalyzer : IDisposable { // Shadow copy analyzer files coming from packages to avoid locking the files in NuGet cache. + // NOTE: It is important that we share the same shadow copy assembly loader for all VisualStudioAnalyzer instances. + // This is required to ensure that shadow copied analyzer dependencies are correctly loaded. private static readonly IAnalyzerAssemblyLoader s_analyzerAssemblyLoader = new ShadowCopyAnalyzerAssemblyLoader(Path.Combine(Path.GetTempPath(), "VS", "AnalyzerAssemblyLoader"));