Posted 6 months ago by Bill Rokos
Version: 18.1.0232
Avatar

I'm trying to programmable add intellisense from a DLL. 

I did find something In the documentation that may work.

Under: "Activpro Syntax Editor > LL(*) Parser Framework > .NET Languages Add-on > C# Language > Getting Started"

var language = new CSharpSyntaxLanguage();
var project = language.GetService<IProjectAssembly>();
var assemblyLoader = new BackgroundWorker();
assemblyLoader.DoWork += (sender, e) => {
    project.AssemblyReferences.AddMsCorLib();  // MsCorLib should always be added at a minimum
    project.AssemblyReferences.Add("System");
    project.AssemblyReferences.AddFrom(@"C:\MyAssembly.dll");
    project.SourceFiles.QueueFile(language, @"C:\MyFile.cs");
};
assemblyLoader.RunWorkerAsync();

However, the method project.AssemblyReferences.AddFrom() doesn’t seem to exists.

Thanks

Comments (1)

Posted 6 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Bill,

Sorry, the Silverlight version doesn't support the AddFrom call due to lack of general file access in that platform.  If you load up an Assembly and pass it to the Add method, that is effectively the same thing though.


Actipro Software Support

The latest build of this product (v2018.1 build 0233) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.