[Tizen] Reduce arm_phdr_cb call overhead
[platform/upstream/coreclr.git] / dotnet.cmd
index 922100a..dc2dd4c 100644 (file)
@@ -8,10 +8,16 @@ set "__ProjectDir=%~dp0"
 set Platform=
 set __ProjectDir=
 
-:: Restore the Tools directory
-call %~dp0init-tools.cmd
+:: Don't resolve runtime, shared framework, or SDK from other locations to ensure build determinism
+set DOTNET_MULTILEVEL_LOOKUP=0
+
+:: Disable first run since we do not need all ASP.NET packages restored.
+set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
+
+:: Install dotnet
+call %~dp0\init-dotnet.cmd
 if NOT [%ERRORLEVEL%]==[0] (
-  exit /b 1
+  exit /b %ERRORLEVEL%
 )
 
 pushd %~dp0