Fixing the NuGet.VisualStudio.Interop load error when creating new projects in Visual Studio 2012

Posted: (EET/GMT+2)

 

I recently installed Visual Studio 2012 to one of my testing machines, but although the installation itself went smoothly and succeeded without errors, still I couldn't create any new projects with my new Visual Studio installation.

Every time I tried creating a new project such as an ASP.NET MVC 4 web application, I got the following error message: "This template attempted to load component assembly 'NuGet.VisualStudio.Interop'".

In more detail, the error message looked like this:

---------------------------
Microsoft Visual Studio
---------------------------
Error: this template attempted to load component assembly
'NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral,  
PublicKeyToken=b03f5f7f11d50a3a'. For more information on this problem
and how to enable this template, please see
documentation on Customizing Project Templates.
---------------------------
OK   
---------------------------

The solution: be sure you have the latest NuGet Package Manager installed. This isn't for some reason installed with Visual Studio 2012 installer, so you have to install it manually. To do this, open up Visual Studio, and go to the Tools/Extensions and Updates, and then in the newly opening dialog box, go to Online/Visual Studio Gallery.

From this list, it's likely that you will find the NuGet Package Manager listed first. Download and install it, and you should be fine!