Creating a plugin for Visual Studio

I am a fan of style, but I hate that he does not have a more productive way to resolve errors.

So, I think, to give me a small project so that I can be happy in my free time, creating a Visual Studio plugin to automate some bug fixes.

Has anyone created a plugin before and got useful links, tips, and sharing experiences?

+6
c # plugins visual-studio stylecop
source share
2 answers

You can write addin for Visual Studio on it addins model directly: http://www.c-sharpcorner.com/UploadFile/mgold/AddIns11292005015631AM/AddIns.aspx

This requires some hard work as the extension model is not very intuitive.


You can also do this with DXCore: http://blogs.microsoft.co.il/blogs/dhelper/archive/2009/06/17/how-to-write-a-simple-dxcore-plug-in.aspx

This is a bit simpler and the plugin module is free.


The last option is to write plugins using Resharper, I have never done this, but it has plugins between the Style-Cop plugin.

I had experience with both of the first options. Firstly, the model of VS-extensions, it is very difficult to work with it. This is an old API, coming from previous versions of VS, based on classic COM and skipping a lot of documentation. The second option, the DXCore plugins, which is much more intuitive, has a reacher API, but it also lacks documentation. Another problem is that it requires installation of ~ 30 MB. Good luck :)

+4
source share

The new version of Visual Studio 2010 Beta 2 and the SDK has projects designed for this kind of thing. Extensibility options with the new WPF interface will be a great way to do this:

http://msdn.microsoft.com/en-us/vstudio/dd441784.aspx#Extensibility

There will be a lot of cool things in 2010

The videos are also really good: http://msdn.microsoft.com/en-gb/vstudio/bb507746.aspx , but they are for older versions of Visual Studio

+2
source share

All Articles