Skip to content

Instantly share code, notes, and snippets.

@g0t4
Created July 10, 2011 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g0t4/1074245 to your computer and use it in GitHub Desktop.
Save g0t4/1074245 to your computer and use it in GitHub Desktop.
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