We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ff4d9f commit 3b56bacCopy full SHA for 3b56bac
PSCompatibilityAnalyzer/Microsoft.PowerShell.CrossCompatibility/Utility/TypeDataConversion.cs
@@ -61,6 +61,15 @@ public static AvailableTypeData AssembleAvailableTypes(
61
62
try
63
{
64
+ // First check whether an assembly with this name already exists
65
+ // Only replace it if the current one is newer
66
+ AssemblyName asmName = asm.GetName();
67
+ if (asms.TryGetValue(asmName.Name, out AssemblyData currentAssemblyData)
68
+ && asmName.Version < currentAssemblyData.AssemblyName.Version)
69
+ {
70
+ continue;
71
+ }
72
+
73
KeyValuePair<string, AssemblyData> asmData = AssembleAssembly(asm);
74
asms[asmData.Key] = asmData.Value;
75
}
0 commit comments