1 @if not defined _echo @echo off
4 set "__ProjectDir=%~dp0"
6 call "%__ProjectDir%"\setup_vs_tools.cmd
8 REM setup_vs_tools.cmd will correctly echo error message.
9 if NOT '%ERRORLEVEL%' == '0' exit /b 1
11 :: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and
12 :: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
16 :: Restore the Tools directory
17 call %~dp0init-tools.cmd
18 if NOT [%ERRORLEVEL%]==[0] (
22 set _toolRuntime=%~dp0Tools
23 set _dotnet=%_toolRuntime%\dotnetcli\dotnet.exe
24 set _json=%~dp0config.json
26 :: run.exe depends on running in the root directory, notably because the config.json specifies
27 :: a relative path to the binclash logger
30 echo Running: %_dotnet% %_toolRuntime%\run.exe %~dp0config.json %*
31 call %_dotnet% %_toolRuntime%\run.exe "%_json%" %*
33 if NOT [%ERRORLEVEL%]==[0] (