Posted 5 years 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 5 years 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 (v18.1 build 0233) was released 4 years ago, which was after the last post in this thread.