Problems adding AssemblyReferences to the SyntaxEditor

SyntaxEditor for WPF Forum

Posted 2 years ago by Ernst Holger Amort - Developer, TQS
Version: 18.1.0671
Avatar

Really like the editor ... 

I tried to attach assemblies using "Add' and have problems. I would also prefer to use references already in the app domain.

The follwoing works fine:

projectAssembly.AssemblyReferences.AddAllInAppDomain();

Problem is that I don't want to expose all dlls to the user. I tried to selectively remove them, but it didn't do the trick:

foreach (var projectAssemblyAssemblyReference in projectAssembly.AssemblyReferences)
{
   if (projectAssemblyAssemblyReference.AssemblyName.Name.StartsWith("ActiproSoftware"))
   {
      projectAssembly.AssemblyReferences.Remove(projectAssemblyAssemblyReference);
   }
}

Any ideas?

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ernst,

Instead of doing AddAllInAppDomain, I would recommend that you just call projectAssembly.AssemblyReferences.Add() on any assembly references you wish to add.


Actipro Software Support

The latest build of this product (v2019.1 build 0684) was released 13 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.