D
Dansk
Hi all,
I am currently writing some code that explores assemblies dependencies.
I start loading the first assembly with Assmebly.LoadFrom which gives me
an Assembly instance.
Then, I enumerate the AssemblyNames from the GetReferencedAssemblies()
collection.
And foreach AssemblyName in that collection, I call again Assembly.Load.
.... and so on recursively...
The first run made a call stack overflow.
After debugging a bit, I discovered that Assembly System.dll has a
dependency on System.Xml.dll, which has itself a dependency on System.dll.
The first and the second system.dll are at the same location (the GAC)
System.Xml.dll is also in the GAC.
Where am I wrong?
Thanks in advance,
Dansk.
I am currently writing some code that explores assemblies dependencies.
I start loading the first assembly with Assmebly.LoadFrom which gives me
an Assembly instance.
Then, I enumerate the AssemblyNames from the GetReferencedAssemblies()
collection.
And foreach AssemblyName in that collection, I call again Assembly.Load.
.... and so on recursively...
The first run made a call stack overflow.
After debugging a bit, I discovered that Assembly System.dll has a
dependency on System.Xml.dll, which has itself a dependency on System.dll.
The first and the second system.dll are at the same location (the GAC)
System.Xml.dll is also in the GAC.
Where am I wrong?
Thanks in advance,
Dansk.