Skip to content

Commit 1ff4d9f

Browse files
author
Robert Holt
committed
Fix crash on duplicate assembly names
1 parent 9a695c3 commit 1ff4d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSCompatibilityAnalyzer/Microsoft.PowerShell.CrossCompatibility/Utility/TypeDataConversion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static AvailableTypeData AssembleAvailableTypes(
6262
try
6363
{
6464
KeyValuePair<string, AssemblyData> asmData = AssembleAssembly(asm);
65-
asms.Add(asmData.Key, asmData.Value);
65+
asms[asmData.Key] = asmData.Value;
6666
}
6767
catch (ReflectionTypeLoadException e)
6868
{

0 commit comments

Comments
 (0)