It's a little bit more simple, and the plugins engine is free.
Last option is to write plugins using Resharper, I never did it but it has reach plugins among Style-cop plugin.
I had experience with both of the first options. First one, VS extensions model, is very hard to work with. It's an old API coming from previous versions of VS, based on classic COM and miss a lot of documentation. Second option, DXCore plugins, is much more intuitive, has reacher API but it also lack some documentation. Another issue is that it requires installation of ~30MB. Good luck :)
这些视频也非常精彩:< a href="http://msdn.microsoft.com/en-gb/vstudio/bb507746.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-gb/vstudio/bb507746.aspx 但这些适用于较旧的 Visual Studio 版本
The new Visual Studio 2010 Beta 2 and the SDK have projects designed for this kind of thing. The extensibility options with the new WPF interface will be a great way to get this done:
发布评论
评论(2)
您可以直接在 Visual-Studio 的插件模型上编写插件: http ://www.c-sharpcorner.com/UploadFile/mgold/AddIns11292005015631AM/AddIns.aspx
由于扩展模型不是很直观,因此需要一些艰苦的工作。
您还可以使用 DXCore 来完成此操作:
http://blogs.microsoft.co.il/blogs/dhelper/archive/2009/06/17/how-to-write-a-simple-dxcore-plug-in.aspx
这是更简单一点,而且插件引擎是免费的。
最后一个选择是使用 Resharper 编写插件,我从未这样做过,但它已经达到了 Style-cop 插件中的插件。
我对第一种选择都有经验。第一个是 VS 扩展模型,很难使用。这是一个来自以前版本的 VS 的旧 API,基于经典的 COM,并且缺少很多文档。第二个选项,DXCore 插件,更加直观,
有reacher API,但也缺少一些文档。另一个问题是它需要安装约 30MB 的空间。
祝你好运 :)
You can write an addin to Visual-Studio on it's addins model directly: http://www.c-sharpcorner.com/UploadFile/mgold/AddIns11292005015631AM/AddIns.aspx
It requires some hard work since the extension model is not very intuitive.
You can also do it using DXCore:
http://blogs.microsoft.co.il/blogs/dhelper/archive/2009/06/17/how-to-write-a-simple-dxcore-plug-in.aspx
It's a little bit more simple, and the plugins engine is free.
Last option is to write plugins using Resharper, I never did it but it has reach plugins among Style-cop plugin.
I had experience with both of the first options. First one, VS extensions model, is very hard to work with. It's an old API coming from previous versions of VS, based on classic COM and miss a lot of documentation. Second option, DXCore plugins, is much more intuitive,
has reacher API but it also lack some documentation. Another issue is that it requires installation of ~30MB.
Good luck :)
新的 Visual Studio 2010 Beta 2 和 SDK 都有专为此类事情设计的项目。新的 WPF 界面的可扩展性选项将是完成此任务的好方法:
http://msdn.microsoft.com/en-us/vstudio/dd441784.aspx#Extensibility
2010 年将会出现很多很酷的东西。
这些视频也非常精彩:< a href="http://msdn.microsoft.com/en-gb/vstudio/bb507746.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-gb/vstudio/bb507746.aspx 但这些适用于较旧的 Visual Studio 版本
The new Visual Studio 2010 Beta 2 and the SDK have projects designed for this kind of thing. The extensibility options with the new WPF interface will be a great way to get this done:
http://msdn.microsoft.com/en-us/vstudio/dd441784.aspx#Extensibility
There is going to be a lot of cool things coming out with 2010
The videos are also really good on : http://msdn.microsoft.com/en-gb/vstudio/bb507746.aspx but these are for older Visual Studio versions