Created
July 10, 2011 03:55
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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