If you don’t want to check-in packages into your source control system, you can enable package restore. This will automate the download of packages during build, if packages aren’t on the machine yet.
After enabling this for a solution I’m working on, I had no problem running this locally. I removed my original packages folder from disc, and the build succeeded because nuget.exe (reference in the build) was able to download the packages. However… this didn’t work on our tfs build server. Continue reading