FIXED: NuGet Crashes Visual Studio

Topics: General
Jun 26, 2012 at 11:22 AM

I'm upset because I have nothing solid to report so probably wont get this resolved.

I have just updated to NuGet 2 as suggested but now every package that I try to install crashes Visual Studio.

I have taken the following action:

  • Uninstalled NuGet - reinstalled it via the website
  • Uninstalled NuGet - reinstalled it via the extension manager built in
  • Tested adding packages from a website loaded over a network share
  • Tested adding packages from a website loaded on a local drive
  • Tested adding multiple packages (AppFail and Ninject)
  • Tried the above loading normally and in adminstrator mode

Versions Installed

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.5.50131 SP1Rel

NuGet Package Manager   2.0.30619.9119

Windows 7 Professional SP1

What Happens

The scroll bar in the Solution Explorer starts whizzing away as if a lot of files are being created further down the tree. After a few seconds it stops moving and then the whole of Visual Studio stops responding.

I do not get an error message. Waiting for a long period of time (over 10 minutes) doesn't bring it back. Clicking on Visual Studio just bring the not responding window and I eventually have to reset it.

Upon restarting no new files have been added to my site.

Jun 26, 2012 at 11:53 AM

I have performed further testing and I have got this problem resolved now.

I tested it with a new website and it worked ok.

This led me to believe it was either packages.config or web.config.

Turns out the solution was to:

  1. Right click the top most node in the Solution Explorer
  2. Choose Property Pages
  3. Change Target Framework to .NET Framework 4.0
  4. Click Apply
  5. At this stage I went and successfully added in NuGet packages again
  6. I then went back to the screen and retargeted it back to .NET Framework 3.5 and confirmed that this I could still add NuGet packages


If one of the developers would like a copy of this rogue web.config I would be happy to provide it. Please just reply to this thread - I have notification emails turned on.