Thursday, May 26, 2016

How do I debug into the Visual Studio project I've been looping in as a NuGet package?

Go back to looping it in as a Visual Studio project in the short term!

  1. Add the project.
  2. Destroy references to the NuGet package.
  3. Add references to the new project to every project that used the NuGet package.
  4. Close Visual Studio 2015.
  5. Delete the packages folder.
  6. Doctor up each packages.config file in each project where you took out the NuGet reference so it's not sucked back in.
  7. Open back up Visual Studio 2015.
  8. Rebuild!

 
 

Beware the "works on my machine" excuse too if you just keep working like this. Sooner or later you'll want to go back to the NuGet package before you say "It works on my machine." out loud.

No comments:

Post a Comment