Skip to content

Commit 3e1fd64

Browse files
committed
Improve build scripts and clean up MSBuild invocation
1 parent cfd7474 commit 3e1fd64

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎BuildBin.vs2022.cmd‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ del /s BuildTmp\*.res
44

55
setlocal
66
for /f "usebackq tokens=*" %%i in (`"%programfiles(x86)%\microsoft visual studio\installer\vswhere.exe" -version [17.0^,18.0^) -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
7-
set InstallDir=%%i
7+
set "InstallDir=%%i"
88
)
99
if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
10-
call "%InstallDir%\Common7\Tools\vsdevcmd.bat
10+
call "%InstallDir%\Common7\Tools\vsdevcmd.bat"
1111
)
1212

1313
if "%1" == "" (
@@ -25,8 +25,8 @@ goto :eof
2525
:BuildBin
2626

2727
del /s Build\%1\Release\WinWebDiff\*.exe
28-
MSBuild WinWebDiff.sln /t:restore /p:RestorePackagesConfig=true || pause
29-
MSBuild WinWebDiff.sln /t:rebuild /p:Configuration=Release /p:Platform="%1" || pause
28+
msbuild WinWebDiff.sln /t:restore /p:RestorePackagesConfig=true || pause
29+
msbuild WinWebDiff.sln /t:rebuild /p:Configuration=Release /p:Platform="%1" || pause
3030

3131
if exist "%SIGNBAT_PATH%" (
3232
call "%SIGNBAT_PATH%" Build\%1\Release\WinWebDiff\WinWebDiff.exe

0 commit comments

Comments
 (0)