Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / VB

Using your Favorite Visual Studio 2010 Add-ins/Extensions in VS2012

4.50/5 (5 votes)
15 Sep 2012CPOL3 min read 30.3K  
How to use your favorite Visual Studio 2010 add-ins/extensions in VS2012

Introduction

I've just about finished my transition from Visual Studio 2010 to Visual Studio 2012. While this has probably been the easiest of any VS update I can remember, it wasn't without a few painful moments. Here's a summary of the annoyances and the solutions I found.

Uppercase Menus

Why, Microsoft, why? I don't want my menus to shout at me. It just looks so... 1992. Luckily, the fix is a piece of cake and requires adding a registry key:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General] 
"SuppressUppercaseConversion"=dword:00000001 

Or just run this to add it automatically: vs_menu_case.reg.

Impenetrable Color Themes

Metro has its moments, but eliminating any visual distinction between Windows, boundaries, and areas is not one of them. Neither of the two themes that come with VS2012 were especially workable for me.

Visual Studio 2012 Color Theme Editor to the rescue. The "blue" theme that comes packaged with this painless extension is comfortingly familiar to those used to VS2010's default scheme. Hooray! I can find the edge of a window again.

Ultrafind (and other non-updated VS2010 extensions)

Did you use Ultrafind with VS2010? If no, I feel sorry for you. If yes, you probably miss it now, since it hasn't been updated.

Not content to wait for an update, I threw caution to the wind and figured I'd see what happens if I just shoehorned it into VS2012. What do you know-- it works. Here's how to get your VS2010 extensions running in VS2012.

Warning: I know nothing about what, if any, differences there may be in the extension model from VS2010 to VS2012. This works for me. It's absolutely not guaranteed to work for you or for all extensions, but there's not likely much harm you can do.

1. Locate your VS2010 User Extensions Folder

Start by opening up C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.pkgdef which shows you the locations from where extensions are loaded. Anything you've installed will likely be in "UserExtensionsFolder":

"UserExtensionsRootFolder" = "$AppDataLocalFolder$\Extensions" 

This is probably located here:

C:\Users\{username}\AppData\Local\Microsoft\VisualStudio\10.0\Extensions 

2. Copy Them

Within this folder should be a subfolder for each extension you've installed. Copy just the folders related to the extensions you want to migrate from here to the same folder for VS2012 -- the same path, but with "11.0" instead of "10.0". For Ultrafind, it's Logan Mueller [MSFT].

3. Clear Cache

There are two ".cache" files in the Extensions folder. Just delete them. This step might not be needed; I tried this a couple times with and without. If you don't do it, VS seems to get confused about which extensions are enabled. If you do, you may need to re-enable other extensions that are installed.

3. Enable

You should now just be able to restart VS2012 and see your extension in the extension manager. Cross your fingers and click Enable.

Build Version Increment (and other add-ins)

You can use a similar technique for add-ins. It's even easier. The one I really care about is Build Version Increment, which seems even less likely that Ultrafind to get an update any time soon (since it was barely updated for VS2010!).

1. Find the Add-ins Folder

Go to Tools->Options->Add In Security from within VS to find the add-in search path. (I happen to keep mine in dropbox so they stay in sync across several machines). If you've never touched this, your add-ins are probably located in %VSMYDOCUMENTS%\Addins, which is here:

C:\Users\{username}\Documents\Visual Studio 2010\Addins 

I have no idea why it's in a completely different place than extensions. Never question Microsoft logic.

2. Copy Files

Like before, just copy the files related to the addins you want to migrate to the same folder for VS 2012. It could be just a single file called "something.addin". For BuildVersionIncrement, there's also a DLL.

3. Update Version

Edit the "*.addin" file and look for this section:

XML
..
<HostApplication>
    <Name>Microsoft Visual Studio</Name>
    <Version>10.0</Version>
</HostApplication>
..

Just change that "10.0" to "11.0" and save. That's all. Restart Visual Studio. If the add-in isn't immediately available, go to Tools->Add In Manager and it should be listed; you can enable it there.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)