问题描述
在仍然创建语言包的同时,我还可以使用"ITaggerProvider"进行语法颜色编码和智能感知吗?
Can I still use 'ITaggerProvider' for syntax colour coding and intellisense while still creating a language package?
我发现只要继承并包含MPF程序包,它就会停止我的ITaggerProvider(即我的MEF框架).
I find as soon as I inherit and include a MPF package, it stops my ITaggerProvider (i.e., my MEF framework).
由于我需要包括语言服务,因此我可以启用-CreateDropDownHelper,因为我无法仅靠MEF做到这一点.
As I needed to include a Language Service so I could enable - CreateDropDownHelper, since I wasn't able to do it in MEF alone.
有什么想法吗?
我还必须添加'< GeneratePkgDefFile> true</GeneratePkgDefFile>'到csproj以获取要加载的包. 将其设置为false,将不加载程序包,并且无法运行MEF.
Also, I had to add '<GeneratePkgDefFile>true</GeneratePkgDefFile>' to the csproj to get the Package to load. Set this to false, and the package doesn't load and MEF runs.
感谢,
Ben
推荐答案
>在仍然创建语言包的同时,我仍可以使用"ITaggerProvider"进行语法颜色编码和智能感知吗?
>Can I still use 'ITaggerProvider' for syntax colour coding and intellisense while still creating a language package?
您是否使用ITaggerProvider MEF组件?您可以在这里显示您的代码吗?
Do you use ITaggerProvider MEF component? Can you show your codes here?
感谢您的理解和支持.
最好的问候
这篇关于语言服务和MEF标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!