Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet error on creating MVC4 Project in VS 2012

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'.".

like image 727
Geasi Puozzo Avatar asked Nov 09 '12 17:11

Geasi Puozzo


2 Answers

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.

like image 156
Bhavesh Chauhan Avatar answered Oct 24 '22 16:10

Bhavesh Chauhan


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

like image 36
Mahdi Zareie Avatar answered Oct 24 '22 16:10

Mahdi Zareie