I wonder if it is possible to use nuget to only store references to the required packages in version control (only the package.config and ignore the packages folder).
Is there a way to tell nuget to (re)download all the referenced packages in the various package.config files? Or something similar which could be put into a build script.
Update:
Seems that I'm not the only one who requested this feature: See this work item (thanks to PHeiberg for the hint)
Update 2:
NuGet now has this feature builtin. See Using NuGet without committing packages to source control for details. All left is to add the packages directory to .gitignore or some equivalent of your VCS (/packages/
will do the trick if you have it in the root of your repository and are using git).
I just found out about NuGetPowerTools: https://github.com/davidfowl/NuGetPowerTools
Also see: http://blog.davidebbo.com/2011/08/easy-way-to-set-up-nuget-to-restore.html
Update: NuGet 1.6 now supports Package Restore: http://docs.nuget.org/docs/release-notes/nuget-1.6
I don't know about your first question.
As for having a CI server automatically update the packages, it's doable in theory. You could chain the "List-Package -Installed" and the "Update-Package" commands and have each package updated to the latest version. See the command reference for further details.
Scott Guthrie says this on the topic:
Edit:
After your comment I see what you're trying to achieve. I found this long thread in the NuPack discussions list about the issue. A solution will apparently not be part of v1. A custom build task in the CI of your choice and a config in your repo for it is the only solution I see. Please report back with your findings. You got me interested.
There is a current discussion about this question at Phil Haack's blog, where he is asking for feedback on how to tackle this question.