As part of a new project we're working on, we have a script engine that uses the SyntaxEditor as its editor (and debug front-end.) To get IntelliSense for the stuff that we add to the language (C#) we add a reference to a custom library (shown below)
The projectAssembly is the a CSharpProjectAssembly which is hooked up as shown below
projectAssembly = new CSharpProjectAssembly("CrosshairsTestCase"); var language = new CSharpSyntaxLanguage(); language.RegisterProjectAssembly(projectAssembly);
The custom assembly (Crosshairs.Windows.SuiteVariables) is modifiable by the user, that is - the code that generates the assembly is recompilable in order to add new properties to the assembly. However, as soon as the editor has been instantiated and the references added, it is impossible to recompile the library.
I've tried working around it with ReflectionOnlyLoad and then using the resulting assembly as reference but to no avail. What is the appropriate way of handling this? Do I have to create a new appdomain and run the editor there in order to force an unload?
Edit: I should add, I've also tried (of course) clearing the AssemblyReferences container but that made no difference
[Modified 7 years ago]