Hi All,
Trying to load an external refernece that itself has some dependencies
dotNetProjectResolver.AddExternalReference("MyDll");
Throws the following exception
"System.ApplicationException: Could not load exported type data for assembly 'Ice.Lib.EpiClientLib, Version=3.0.7.0, Culture=neutral, PublicKeyToken=5d3fa3c7105d7992'. ---> System.IO.FileLoadException: Cannot resolve dependency to assembly 'Infragistics4.Win.v12.2, Version=12.2.20122.2018, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.\r\n at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)\r\n at System.Reflection.RuntimeAssembly.GetExportedTypes()\r\n at #Rye.#eze..ctor(Assembly assembly, String assemblyFullName, String assemblyLocation, String cachePath, Boolean documentationEnabled)\r\n --- End of inner exception stack trace ---\r\n at #Rye.#eze..ctor(Assembly assembly, String assemblyFullName, String assemblyLocation, String cachePath, Boolean documentationEn
abled)\r\n at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.#2ye.#BGe(AssemblyCodeRepositoryOptions #qgb, ResolveEventHandler #B1f)\r\n at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.#2ye.#BGe(AssemblyCodeRepositoryOptions #qgb, ResolveEventHandler #B1f)\r\n at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.Add(String assemblyName, DotNetProjectResolver projectResolver)\r\n at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddExternalReference(String assemblyName)\r\n at AppAutoComplete.Form1.button1_Click(Object sender, EventArgs e) in c:\\Users\\jose\\Documents\\Visual Studio 2013\\Projects\\AppAutoComplete\\AppAutoComplete\\Form1.cs:line 57"
Which i thought I could get fixed by loading the dependent Assembly First
dotNetProjectResolver.AddExternalReference("DLLMYDLLDEPENDSON");
dotNetProjectResolver.AddExternalReference("MYDLL");
But although the initial DLL loads ok, whe MyDLL tries to load it still complains about not having the dependency (that I previously loaded)
Any ideas?