Revert "[Tizen] Fix crash on accessing 0x0 while unwinding (#287)"
[platform/upstream/coreclr.git] / dotnet.sh
index 128f60b..505d9d1 100755 (executable)
--- a/dotnet.sh
+++ b/dotnet.sh
@@ -2,11 +2,16 @@
 
 working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
-echo "Running init-tools.sh"
-source $working_tree_root/init-tools.sh
+# Don't resolve runtime, shared framework, or SDK from other locations to ensure build determinism
+export DOTNET_MULTILEVEL_LOOKUP=0
 
-toolRuntime=$working_tree_root/Tools
-dotnet=$toolRuntime/dotnetcli/dotnet
+# Disable first run since we want to control all package sources
+export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
+
+echo "Running init-dotnet.sh"
+source $working_tree_root/init-dotnet.sh
+
+dotnet=${_InitializeDotNetCli}/dotnet
 
 echo "Running: $dotnet $@"
 $dotnet "$@"