1 @if not defined _echo @echo off
4 if not defined VisualStudioVersion (
5 if defined VS150COMNTOOLS (
6 if not exist "%VS150COMNTOOLS%\..\IDE\devenv.exe" goto NoVS
7 if not exist "%VS150COMNTOOLS%\..\..\VC\Auxiliary\Build\vcvarsall.bat" goto NoVS
8 if not exist "%VS150COMNTOOLS%\VsDevCmd.bat" goto NoVS
9 call "%VS150COMNTOOLS%\VsDevCmd.bat"
11 ) else if defined VS140COMNTOOLS (
12 if not exist "%VS140COMNTOOLS%\..\IDE\devenv.exe" goto NoVS
13 if not exist "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" goto NoVS
14 if not exist "%VS140COMNTOOLS%\VsDevCmd.bat" goto NoVS
15 call "%VS140COMNTOOLS%\VsDevCmd.bat"
20 echo Error: Visual Studio 2015 or 2017 required.
21 echo https://github.com/dotnet/coreclr/blob/master/Documentation/building/windows-instructions.md for build instructions.
26 :: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and
27 :: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
30 :: Restore the Tools directory
31 call %~dp0init-tools.cmd
32 if NOT [%ERRORLEVEL%]==[0] (
36 set _toolRuntime=%~dp0Tools
37 set _dotnet=%_toolRuntime%\dotnetcli\dotnet.exe
39 echo Running: %_dotnet% %_toolRuntime%\run.exe %~dp0config.json %*
40 call %_dotnet% %_toolRuntime%\run.exe %~dp0config.json %*
41 if NOT [%ERRORLEVEL%]==[0] (