Skip to content

Instantly share code, notes, and snippets.

@RyannosaurusRex
Created October 14, 2015 18:44
Show Gist options
  • Save RyannosaurusRex/649860d4969d0b954666 to your computer and use it in GitHub Desktop.
Save RyannosaurusRex/649860d4969d0b954666 to your computer and use it in GitHub Desktop.
Recursively package all .nuspec files in a directory from a .bat file.
@ECHO OFF
SETLOCAL
SET VERSION=%1
SET NUGET=.\BuildAndPackageSupport\nuget.exe
FOR /r %%f IN (*.nuspec) DO (
echo "packing..."
%NUGET% pack %%f -Version %VERSION%
)
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment