Skip to content

Instantly share code, notes, and snippets.

@g0t4
Created Jul 10, 2011
Embed
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}}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment