From 2562464cf01cc96ef1b78ccea75527b6caccfef7 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Wed, 5 Feb 2020 13:44:29 -0800 Subject: [PATCH] Skip installing dotnet on xplat --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 430a533f9e..775200a963 100755 --- a/build.sh +++ b/build.sh @@ -316,7 +316,10 @@ restore=true InitializeToolset -InstallDotNetSdk "$repo_root/.dotnet" "3.1.102-servicing-014873" +dotnet_install_dir="$repo_root/.dotnet" +if [[ ! -d "$dotnet_install_dir/sdk/3.1.102" ]]; then + InstallDotNetSdk "$dotnet_install_dir" "3.1.102-servicing-014873" +fi restore=$_tmp_restore=