File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net11 .0</TargetFramework >
4+ <TargetFramework >net9 .0</TargetFramework >
55 <IsPackable >false</IsPackable >
66 <SuppressNETCoreSdkPreviewMessage >true</SuppressNETCoreSdkPreviewMessage >
77 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
Original file line number Diff line number Diff line change @@ -28,14 +28,19 @@ try {
2828 # On Linux, use the bash tools.sh (tools.ps1 uses dotnet-install.ps1
2929 # which doesn't work reliably on Linux)
3030 $engCommonDir = (Resolve-Path " $PSScriptRoot /../eng/common" ).Path
31- $initScript = " source '$engCommonDir /tools.sh'; InitializeDotNetCli true; echo `$ _InitializeDotNetCli"
31+ # InitializeToolset triggers Arcade's InstallDotNetCore target which installs
32+ # additional runtimes defined in global.json's tools.runtimes section.
33+ $initScript = " source '$engCommonDir /tools.sh'; InitializeDotNetCli true; InitializeToolset; echo `$ _InitializeDotNetCli"
3234 $dotnetInstallDir = (& bash - c $initScript | Select-Object - Last 1 ).Trim()
3335 if ($LASTEXITCODE -ne 0 ) {
3436 throw " Failed to initialize .NET SDK via tools.sh"
3537 }
3638 } else {
3739 . $PSScriptRoot / ../ eng/ common/ tools.ps1
3840 $dotnetInstallDir = InitializeDotNetCli $true
41+ # Triggers Arcade's InstallDotNetCore target to install additional runtimes
42+ # defined in global.json's tools.runtimes section.
43+ InitializeToolset
3944 }
4045
4146 $cmd = " $dotnetInstallDir /dotnet test $PSScriptRoot /ImageBuilder.Tests/Microsoft.DotNet.ImageBuilder.Tests.csproj --logger:trx"
You can’t perform that action at this time.
0 commit comments