开发者

Creating a plugin for Visual Studio [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 8 years ago.

I开发者_开发知识库mprove this question

I'm a fan of style cop but hate the way it dosn't have a more producticve way of resolving errors.

So I'm thinking, to give me a wee project to keep me happy in my spare time, of creating a Visual studio plugin to automate some error fixing.

Has anyone authored a plug in before and got any useful links, hints, experience to share?


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 :)


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜