[x86/Linux] Fix SIGSEGV on Debugger.Break() during debugging.
[platform/upstream/coreclr.git] / dotnet.cmd
1 @if not defined _echo @echo off
2 setlocal
3
4 set "__ProjectDir=%~dp0"
5
6 :: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and
7 :: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
8 set Platform=
9 set __ProjectDir=
10
11 :: Don't resolve runtime, shared framework, or SDK from other locations to ensure build determinism
12 set DOTNET_MULTILEVEL_LOOKUP=0
13
14 :: Disable first run since we do not need all ASP.NET packages restored.
15 set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
16
17 :: Install dotnet
18 call %~dp0\init-dotnet.cmd
19 if NOT [%ERRORLEVEL%]==[0] (
20   exit /b %ERRORLEVEL%
21 )
22
23 pushd %~dp0
24 echo Running: dotnet %*
25 call "%~dp0\.dotnet\dotnet.exe" %*
26 popd
27 if NOT [%ERRORLEVEL%]==[0] (
28   exit /b 1
29 )
30
31 exit /b 0