Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 37bc459

Browse files
committed
Append additional MSBuild args at the end
This makes them align better with what's passed in the command line
1 parent 09d2c92 commit 37bc459

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build.cmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if /I "%1" == "/test" set MSBuildTarget=Test&&shift&& goto :ParseArguments
2121
if /I "%1" == "/restore" set MSBuildTarget=Restore&&shift&& goto :ParseArguments
2222
if /I "%1" == "/no-node-reuse" set NodeReuse=false&&shift&& goto :ParseArguments
2323
if /I "%1" == "/no-multi-proc" set MultiProcessor=&&shift&& goto :ParseArguments
24-
set MSBuildAdditionalArguments=%1 %MSBuildAdditionalArguments%&&shift&& goto :ParseArguments
24+
set MSBuildAdditionalArguments=%MSBuildAdditionalArguments% %1&&shift&& goto :ParseArguments
2525
:DoneParsing
2626

2727
:: Detect if MSBuild is in the path
@@ -75,7 +75,9 @@ if "%VisualStudioVersion%" == "" (
7575
call "%DeveloperCommandPrompt%" || goto :BuildFailed
7676
)
7777

78+
@echo on
7879
msbuild /nologo /nodeReuse:%NodeReuse% /t:"%MSBuildTarget%" /p:Configuration="%BuildConfiguration%" %MSBuildAdditionalArguments%
80+
@echo off
7981
if ERRORLEVEL 1 (
8082
echo.
8183
call :PrintColor Red "Build failed, for full log see msbuild.log."

0 commit comments

Comments
 (0)