Make the new stream class sealed
[platform/upstream/coreclr.git] / dotnet.cmd
1 @if not defined _echo @echo off
2 setlocal
3
4 set "__ProjectDir=%~dp0"
5
6 call "%__ProjectDir%"\setup_vs_tools.cmd
7
8 REM setup_vs_tools.cmd will correctly echo error message.
9 if NOT '%ERRORLEVEL%' == '0' exit /b 1
10
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).
13 set Platform=
14 set __ProjectDir=
15
16 :: Restore the Tools directory
17 call %~dp0init-tools.cmd
18 if NOT [%ERRORLEVEL%]==[0] (
19   exit /b 1
20 )
21
22 pushd %~dp0
23 echo Running: dotnet %*
24 call "%~dp0\Tools\dotnetcli\dotnet.exe" %*
25 popd
26 if NOT [%ERRORLEVEL%]==[0] (
27   exit /b 1
28 )
29
30 exit /b 0