From 0a1919cac9aaf2dd99cde213edef354e2bad1d83 Mon Sep 17 00:00:00 2001 From: Westin Musser <127992899+westin-m@users.noreply.github.com> Date: Tue, 3 Dec 2024 09:23:06 -0800 Subject: [PATCH] Specify sdk version in global.json (#3156) * create global.json * pr feedback --- build/template-install-dependencies.yaml | 2 +- global.json | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 global.json diff --git a/build/template-install-dependencies.yaml b/build/template-install-dependencies.yaml index 191df3dd0..378724108 100644 --- a/build/template-install-dependencies.yaml +++ b/build/template-install-dependencies.yaml @@ -26,7 +26,7 @@ steps: - task: UseDotNet@2 displayName: 'Use .NET SDK 9.0.x' inputs: - version: 9.0.x + useGlobalJson: true # Run Nuget Tool Installer diff --git a/global.json b/global.json new file mode 100644 index 000000000..4b116a059 --- /dev/null +++ b/global.json @@ -0,0 +1,9 @@ +{ + "msbuild-sdks": { + "Microsoft.Build.NoTargets": "3.7.56" + }, + "sdk": { + "version": "9.0.0", + "rollForward": "latestFeature" + } +}