Fix 'FixupFileName' to not load resolved assembly during module discovery (#8634)

This commit is contained in:
Dongbo Wang authored and Aditya Patwardhan committed 2019-01-15 16:22:25 -08:00
1 parent 7bf4641444
commit c2dfae8ccb
7 files changed
+130 -150

No files matched your search

@@ -1259,7 +1259,7 @@ namespace Microsoft.PowerShell.Commands
return true;
}
if (manifestEntries.Any(s => FixupFileName(string.Empty, s, ".ps1xml").EndsWith(cimModuleFile.FileName, StringComparison.OrdinalIgnoreCase)))
if (manifestEntries.Any(s => FixupFileName(string.Empty, s, ".ps1xml", isImportingModule: true).EndsWith(cimModuleFile.FileName, StringComparison.OrdinalIgnoreCase)))
{
return true;
}