Skip to content

Instantly share code, notes, and snippets.

Created June 24, 2011 02:57
  • Star 7 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Examples of how to build all Nuget nuspec files in a folder
SET NUGET=buildsupport\nuget.exe
FOR %%G IN (packaging\nuget\*.nuspec) DO (
%NUGET% pack %%G -Version %VERSION% -Symbols -o artifacts
# A rake task to build all packages in a folder
desc "Build the nuget packages"
task :package do
rm Dir.glob("#{ARTIFACTS}/*.nupkg")
FileList["packaging/nuget/*.nuspec"].each do |spec|
sh "#{nuget} pack #{spec} -o #{ARTIFACTS} -Version #{BUILD_NUMBER} -Symbols"
Copy link

dubmun commented Jun 16, 2013

I really enjoyed your article on Los Techies! I know powershell isn't what the cool kids are using but feel free to grab the new file I added in my fork. I might add a scriptcs version as well and will let you know if I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment