未验证 提交 10373fd7 编写于 作者: B Brett V. Forsgren 提交者: GitHub

only install 2.1 SDK in non source build scenarios (#7703)

上级 39fdcf21
......@@ -60,6 +60,7 @@ force_bootstrap=false
ci=false
skip_analyzers=false
prepare_machine=false
source_build=false
properties=""
docker=false
......@@ -131,6 +132,9 @@ while [[ $# > 0 ]]; do
;;
/p:*)
properties="$properties $1"
if [[ "$1" == "/p:dotnetbuildfromsource=true" ]]; then
source_build=true
fi
;;
*)
echo "Invalid argument: $1"
......@@ -277,7 +281,9 @@ function BuildSolution {
InitializeDotNetCli $restore
# enable us to build netcoreapp2.1 binaries
InstallDotNetSdk $_InitializeDotNetCli 2.1.503
if [[ "$source_build" != true ]]; then
InstallDotNetSdk $_InitializeDotNetCli 2.1.503
fi
BuildSolution
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册