Skip to content

Commit 4b95269

Browse files
authored
Add culture to the extensionmanager reference to unblock d18 (#77112)
2 parents 3b7a814 + cd9c7c1 commit 4b95269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VisualStudio/Core/Def/Diagnostics/VisualStudioDiagnosticAnalyzerProvider.Factory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public async Task<VisualStudioDiagnosticAnalyzerProvider> GetOrCreateProviderAsy
4747
// this will allow us to build once and deploy on different versions of VS SxS.
4848
var vsDteVersion = Version.Parse(dte.Version.Split(' ')[0]); // DTE.Version is in the format of D[D[.D[D]]][ (?+)], so we need to split out the version part and check for uninitialized Major/Minor below
4949

50-
var assembly = Assembly.Load($"Microsoft.VisualStudio.ExtensionManager, Version={(vsDteVersion.Major == -1 ? 0 : vsDteVersion.Major)}.{(vsDteVersion.Minor == -1 ? 0 : vsDteVersion.Minor)}.0.0, PublicKeyToken=b03f5f7f11d50a3a");
50+
var assembly = Assembly.Load($"Microsoft.VisualStudio.ExtensionManager, Version={(vsDteVersion.Major == -1 ? 0 : vsDteVersion.Major)}.{(vsDteVersion.Minor == -1 ? 0 : vsDteVersion.Minor)}.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
5151
var typeIExtensionContent = assembly.GetType("Microsoft.VisualStudio.ExtensionManager.IExtensionContent");
5252
var type = assembly.GetType("Microsoft.VisualStudio.ExtensionManager.SVsExtensionManager");
5353
var extensionManager = _serviceProvider.GetService(type);

0 commit comments

Comments
 (0)