Setting up the NuGet Development Environment
So you want to hack on NuGet? These notes will help you get your development environment
set up correctly so you can work on NuGet using Visual Studio 2010.
Get and Build the code
- Install Git. Install Git for Windows and then optionally install TortoiseGit
Clone the repository. From a command prompt, run the following command in a directory where you want the source code to be placed.
This will create a folder named "nuget" with the source.
git clone https://git01.codeplex.com/nuget
Download and install the Visual Studio 2010 SDK
- Run build.cmd from a Command Prompt running with Administrator privileges
Setup Debugging
To debug the console and UI during development, following these steps:
- Launch Visual Studio as Administrator
- Make sure that the NuGet Extension is UNINSTALLED from your primary instance of VS so your newly compiled one can load into the experimental instance.
- Set the VsExtension project as the startup project
- Open the Properties page of the VsExtension project.
- Click on the Debug tab.
- Choose Start external program option. Type in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe into the textbox (your path may be slightly different).
- In the command line arguments textbox below, type: /rootsuffix Exp.
- Ensure you rebuild the VsExtension project.
- Now you can run or debug the VsExtension project and this would launch a separate instance of VS2010 (called the Experimental instance)
with a copy of the NuGet vsix installed. What you do in this instance don't affect the main VS instance.