Posted by Anuraj on Wednesday, October 2, 2013 Reading time :1 minute
In the recent project I was using few nuget packages. And I was using TFS. Committing these packages into TFS was increasing the size of the repository. Later I found a solution using Enable NuGet Package Restore option. You can enable this option by right clicking on the solution file or from Project > Enable NuGet Package Restore option.
This will show up a confirmation message like this.
Once you accepts it, Visual Studio will add a .nuget folder to the solution, you need to check in the solution to TFS.
The nuget.config file contains following XML.
The disableSourceControlIntegration setting instructs version control systems like TFS to not add the NuGet packages folder to the pending check-ins list.
Now you can delete the packages folder and try to build it again, Visual Studio will be downloading packages for you.
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.