NuGet error on creating MVC4 Project in VS 2012

28,770

Solution 1

I believe you do not have NuGet Package Manager extension installed.

If not, you can click TOOLS -> Extensions and Updates... -> Online, select NuGet Package Manager, and click Download:

enter image description here

After it downloads, you will be prompted for administrative elevation, and then to restart Visual Studio.

Tested in: Visual Studio Ultimate 2012 (Version 11.0.60610.01 Update 3)

UPDATE: I've just came across this problem in Visual Studio 2012. So despite some comments here, it is not necessarily installed by default.

Solution 2

i) Open Visual Studio > Tools > Extensions and Updates > select 'NuGet Package Manager' and uninstall it.(if it's not installed go to step 2)

ii) Open this url 'http://nuget.org' and you will see an 'Install NuGet' link , download it(NuGet.Tools.vsix) and install it on your Visual Studio .

iii) Close and Re-open the Visual Studio and i believe you will never see that error Dialog again just like me ;-)

Solution 3

Same issue.

"Error: this template attempted to load component assembly 
'NuGet.VisualStudio.Interop .... "
when creating a new Web Role project in VS 2012.

Selecting:

  • TOOLS
  • Extensions and Updates
  • Online
  • Select NuGet Package Manager
  • Click Download
  • i could see NuGet was installed already
  • I removed it
  • installed it again
  • restarted VS

Resolved.

Thanks for the information above + 1. Scott

Solution 4

you might want to search and check the dll exists under \Microsoft Visual Studio 11.0\Common7\IDE\Extensions\ (it would be in a folder under extensions with other nuget binaries). If it doesn't exist you can try uninstalling and re-installing nuget. to uninstall: tools->extensions and updates -> installed (on the left pane)-> nuget package manager to install: tools->extensions and updates -> online->visualstudio gallery -> nuget package manager

Share:
28,770
Geasi Puozzo
Author by

Geasi Puozzo

Updated on July 09, 2022

Comments

  • Geasi Puozzo
    Geasi Puozzo almost 2 years

    I tried to create a MVC4 empty project in VisualStudio 2012 Ultimate, but I got this error:

    "Error: this template attempted to load component assembly 'NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.".