Reputation: 595
I am trying to move my solution to utilize NuGet Package Restore so that I can keep the packages
folder out of source control. I have some confusion as to how to properly implement it however.
packages
folder in TFS, should I delete it before committing the changes for NuGet Package Restore?.nuget
folder to source control? This article is telling me to remove .NuGet.exe
and NuGet.targets
as well.Upvotes: 2
Views: 359
Reputation: 58980
Make sure that you close down Visual Studio before running the package restore migration script... I've found that if you run the script with the solution open, it won't work properly.
If you're using Git, add the packages folder to your .gitignore.
If you're using TFVC, make sure that your NuGet.config file has the disableSourceControlIntegration
key set to true
.
Upvotes: 2
Reputation: 23434
From Visual Studio 2013 update 3 Nuget package restore is the default and does not need enabled.
If you delete the /packages folder and check in it should just populate automatically with no additional work required.
Yes: Remove nuget.targets and .nuget folder.
Upvotes: 1