Hi,
I am experiencing an issue when I call the DotNetProjectResolver.AddExternalReferenceForSystemAssembly() method, here is the trace of the exception:Here is my code. The exception is thrown at this.dotNetProjectResolver.AddAllAssembliesInAppDomainAsExternalReferences(). I have checked if the Cache path is well formed and I found no problem.
Any chance you could help me to find out if that bug comes from my code or from the addon?
Thanks & regards,
Edward
[Modified at 12/21/2006 06:34 AM]
I am experiencing an issue when I call the DotNetProjectResolver.AddExternalReferenceForSystemAssembly() method, here is the trace of the exception:
System.Reflection.TargetInvocationException: Error invoking delegate in InfoMessageBoxThread ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: The path is not of a legal form.
at System.IO.Path.nGetFullPathHelper(String path, Char[] invalidPathChars, Char[] whitespaceChars, Char directorySeparator, Char altDirectorySeparator, Char volumeSeparator, Boolean fullCheck, String& newPath)
at System.IO.Path.FixupPath(String path)
at System.IO.Path.GetDirectoryName(String path)
at ao.a(Assembly A_0)
at ao..ctor(Assembly A_0, String A_1, String A_2, String A_3, Boolean A_4)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.b.a(c A_0)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.Add(Assembly assembly, String assemblyFullName, DotNetProjectResolver projectResolver)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddExternalReference(Assembly assembly, String assemblyFullName)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddExternalReference(Assembly assembly)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddAllAssembliesInAppDomainAsExternalReferences()
at ScriptEditor.ScriptEditor..ctor()
at ScriptUI.ScriptUI.InitializeComponent()
at ScriptUI.ScriptUI..ctor()
InitializeComponent();
string exePath = System.IO.Path.GetDirectoryName(Environment.GetCommandLineArgs()[0]) ;
this.dotNetProjectResolver.CachePath = System.IO.Path.Combine(exePath, @"Cache\");
this.dotNetProjectResolver.AddAllAssembliesInAppDomainAsExternalReferences();
foreach(string ass in FSLAssemblyReferences)
{
this.dotNetProjectResolver.AddExternalReference(System.IO.Path.Combine(exePath, ass)) ;
}
this.editor.DocumentSyntaxLanguageLoaded += new ActiproSoftware.SyntaxEditor.SyntaxLanguageEventHandler(editor_DocumentSyntaxLanguageLoaded);
Thanks & regards,
Edward
[Modified at 12/21/2006 06:34 AM]