lukebuehler / NRefactory-Completion-Sample

A small but full featured prototype how to do code completion with NRefactory
93 stars 39 forks source link

Referencing Assemblies #8

Open samgregson opened 9 years ago

samgregson commented 9 years ago

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?

Camuvingian commented 9 years ago

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...

gilgame commented 9 years ago

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) in the constructor.

lukebuehler commented 9 years ago

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!