Skip to content

Instantly share code, notes, and snippets.

@jeremiahredekop
Forked from joshuaflanagan/package.bat
Created October 27, 2013 23:42
Show Gist options
  • Select an option

  • Save jeremiahredekop/7189279 to your computer and use it in GitHub Desktop.

Select an option

Save jeremiahredekop/7189279 to your computer and use it in GitHub Desktop.

Revisions

  1. @joshuaflanagan joshuaflanagan created this gist Jun 24, 2011.
    8 changes: 8 additions & 0 deletions package.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    @ECHO OFF
    SETLOCAL
    SET VERSION=%1
    SET NUGET=buildsupport\nuget.exe

    FOR %%G IN (packaging\nuget\*.nuspec) DO (
    %NUGET% pack %%G -Version %VERSION% -Symbols -o artifacts
    )
    9 changes: 9 additions & 0 deletions package.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # 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"
    end
    end