Visual Studio extension to switch between NuGet and project references.
C# Batchfile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
build Added build script Oct 6, 2017
src v1.9 Dec 5, 2017
.gitignore Improved .gitignore Nov 10, 2017 Rename LICENSE to Jun 6, 2015 Update Apr 6, 2017

NuGet Reference Switcher

NuGet Reference Switcher is a Visual Studio extension which automatically switches NuGet assembly references to project references and vice-versa. This is useful when developing applications which reference own NuGet packages: When developing an application, switch to project references so that all code is editable and debuggable. After finishing the development, create new NuGet package versions, switch back to NuGet references and upgrade to the new NuGet versions.

Guide about how to use the extension


  • Switches from NuGet DLL references to project references and stores the changes to revert them later
  • Automatically adds and removes projects to the solution if desired
  • Checks project dependencies so that the projects get added and removed in the correct order

Download from Visual Studio Gallery

The NuGet Reference Switcher extension is developed by Rico Suter using the MyToolkit library.

(This project has originally been hosted on CodePlex)

How to build the extension

In order to build the extension, you need to install the Visual Studio SDK(s):

Visual Studio 2012 SDK:

Visual Studio 2013 SDK:

Visual Studio 2015 SDK:

After installing the SDK, run one of the batch files from the /build directory in the corresponding Visual Studio Command Prompt. The release output can be found in the /build/Output directory.

How to debug the extension

Right click on the extension project and select Properties. In the Debug tab set Start External Program to one of the following Visual Studio executables:

Visual Studio 2012:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe

Visual Studio 2013:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe

Visual Studio 2015:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe

Visual Studio 2017:

   C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe

And set the Command line arguments to:

/rootsuffix Exp