1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
@setlocal @pushd %~dp0 @set _C=Debug :parse_args @if /i "%1"=="release" set _C=Release @if not "%1"=="" shift & goto parse_args @echo Building libs %_C% using %_N% :: libs nuget restore || exit /b msbuild -m -p:Configuration=%_C% libs.proj || exit /b @popd @endlocal