Skip to content

Instantly share code, notes, and snippets.

Created Jul 10, 2011
What would you like to do?
Rake task to install missing packages from nuget when not checking in packages
desc "Setup dependencies for nuget packages"
task :dep do
package_folder = File.expand_path('src\\packages')
packages = FileList["**/packages.config"].map{|f| File.expand_path(f)}
packages.each do |file|
sh %Q{nuget install #{file} /OutputDirectory #{package_folder}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment