-set options=/nologo /v:minimal /flp:v=detailed;Append;LogFile=%packagesLog%
-set allargs=%*
-
-if /I [%1] == [/?] goto Usage
-if /I [%1] == [/help] goto Usage
-
-REM ensure that msbuild is available
-echo Running init-tools.cmd
-call %~dp0init-tools.cmd
-
-echo msbuild.exe %~dp0src\publish.proj !options! !allargs! >> %packagesLog%
-call msbuild.exe %~dp0src\publish.proj !options! !allargs!
-if NOT [%ERRORLEVEL%]==[0] (
- echo ERROR: An error occurred while publishing packages, see %packagesLog% for more details.
- exit /b 1
-)
-
-echo Done publishing packages.
-exit /b