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
-dotnet=$working_tree_root/.dotnet/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 "$@"