NRefactory-Completion-Sample
NRefactory-Completion-Sample copied to clipboard
Referencing Assemblies
I'm guessing the "ScriptProvider" in "ICSharpCode.CodeCompletion.Sample" is supposed to allow the addition of assemblies however I can't seem to get this to work. Is this something anyone else has problems with or is it just me?
I have had issues with this too. I believe Luke has come back to me on a closed issue. Have a look through the closed issues. I am just starting to get back into this code so will report back if I find anything...
You need to make sure the assembly is referenced in the ICSharpCode.CodeCompletion project. Then, in CSharpCompletion.cs, you need to add the assembly to the assemblies List (line 25: var assemblies = new List<Assembly>) in the constructor.
Hmm, I have to look into this myself, by now the way adding of assemblies is handled has diverged quite a bit in CShell where I'm most up to speed!