Simple way of using NuGet


Moving a solution file with reasonable amount of references to work with NuGet is quite easy. What you'll need to do is to install "NuGet Package Manager" using the following link:, right click each project's references to remove references that had been added using the browse tab (not .NET, COM and project references) and add them back using the Manage NuGet Packages... option that had been added to the right click references menu after installing the "NuGet Package Manager".

After the above will be completed, all your browse references will be available from NuGet and that way you'll not need to save them into your source control.

In order to maintain restoring packages, you'll need to right click your solution in the solution explorer and pick "Enable NuGet Package Restore". This will create a .nuget folder next to your .sln file and will download three files to that folder:

1) nuget.exe - the actual NuGet command line.

2) nuget.config - Configure package sources

3) nuget.targets - Some more nuget configurations (we'll get back to this one soon)


Now you'll need to add this folder into your source control to maintain restoring packages. Problem is that this folder contain a binary file which you are trying to avoid commiting into your source control. The solution I have found for this problem is to change one configuration in the nuget.targets file (I promised I'll get back to it :-)). The configuration is:

<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">true</DownloadNuGetExe>

The default vale for this parameter if false. Change it to true and commit the file to your source control. Next time a new user will open his Visual Studio, this configuration will automatically download nuget.exe to your .nuget folder.


Common 3rdParty packages are available at he official NuGet gallery. If you want to use 3rdParty packages that are not available at the official NuGet gallery or you need DLLs/EXEs that you or your colleagues created in house, you'll need your own feed/gallery/file server.

I know Nexus and Artifactory as good artifact server programs for java. Problem is they are not free if you want to use them with NuGet.

I still recommend using them but if you insist on free solution, you can always follow the instruction in the below link: (starting at "Creating Remote Feeds").

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at