Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.

Commit a73eb6f

Browse files
committed
CR-1753. Fix the OPENICF-54 stdole.dll problem
1 parent 7abdb49 commit a73eb6f

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

FrameworkInternal/ApiLocalOperations.cs

+2-17
Original file line numberDiff line numberDiff line change
@@ -1050,25 +1050,10 @@ public Object RunScriptOnConnector(ScriptContext request,
10501050
private Assembly[] BuildReferenceList(Assembly assembly)
10511051
{
10521052
List<Assembly> list = new List<Assembly>();
1053-
BuildReferenceList2(assembly, list, new HashSet<string>());
1053+
// Just add the connector itself.
1054+
list.Add(assembly);
10541055
return list.ToArray();
10551056
}
1056-
1057-
private void BuildReferenceList2(Assembly assembly,
1058-
List<Assembly> list,
1059-
HashSet<string> visited)
1060-
{
1061-
bool notThere = visited.Add(assembly.GetName().FullName);
1062-
if (notThere)
1063-
{
1064-
list.Add(assembly);
1065-
foreach (AssemblyName referenced in assembly.GetReferencedAssemblies())
1066-
{
1067-
Assembly assembly2 = Assembly.Load(referenced);
1068-
BuildReferenceList2(assembly2, list, visited);
1069-
}
1070-
}
1071-
}
10721057
}
10731058
#endregion
10741059

0 commit comments

Comments
 (0)