Skip to content

Instantly share code, notes, and snippets.

@KevM

KevM/rakefile.rb Secret

Created February 3, 2012 15:21
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 KevM/e3e712b66020895a94c5 to your computer and use it in GitHub Desktop.
Save KevM/e3e712b66020895a94c5 to your computer and use it in GitHub Desktop.
Nuget Install
desc "Run nuget install on all projects"
task :install => [:clean] do
Dir.glob(File.join("**","packages.config")){ |file|
packagesDir = File.absolute_path("source/packages")
packagesConfig = File.absolute_path(file)
puts "Updating packages for #{packagesConfig}"
Dir.chdir('./source/.nuget/') do
sh "#{NUGET_EXE} install #{packagesConfig} -OutputDirectory #{packagesDir}"
end
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment