mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-24 18:57:09 +00:00
Fix 'FixupFileName' to not load resolved assembly during module discovery (#8634)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user