Adding a solution to TFS without adding the NuGet packages.

I was adding a project that I just completed to TFS source control and noticed that it wanted to add the packages to source control also, but I didn’t want that because you are not supposed to add the NuGet packages.  They can be re-downloaded and installed during the build process for anyone that does not have them.

I found this nuget link extremely useful on how to configure the solution to 1) Enable the nuget download and 2) keep the packages from being added to source control.

The basic steps are:

            1. Enable the NuGet package restore.  This will add some NuGet stuff to the solution.
            2. Add your project to TFS, then of course commit the change.

Leave a Reply

Your email address will not be published. Required fields are marked *