diff --git a/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerAssemblyLoader.Desktop.cs b/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerAssemblyLoader.Desktop.cs index 87060833843c8..82bcff0a5d65c 100644 --- a/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerAssemblyLoader.Desktop.cs +++ b/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerAssemblyLoader.Desktop.cs @@ -77,8 +77,7 @@ internal bool EnsureResolvedUnhooked() { try { - var displayName = AppDomain.CurrentDomain.ApplyPolicy(args.Name); - var assemblyName = new AssemblyName(displayName); + var assemblyName = new AssemblyName(args.Name); string? bestPath = GetBestPath(assemblyName); if (bestPath is not null) {