@@ -604,14 +604,7 @@ function InitializeBuildTool() {
604604 }
605605 $dotnetPath = Join-Path $dotnetRoot (GetExecutableFileName ' dotnet' )
606606
607- # Use override if it exists - commonly set by source-build
608- if ($null -eq $env: _OverrideArcadeInitializeBuildToolFramework ) {
609- $initializeBuildToolFramework = " net9.0"
610- } else {
611- $initializeBuildToolFramework = $env: _OverrideArcadeInitializeBuildToolFramework
612- }
613-
614- $buildTool = @ { Path = $dotnetPath ; Command = ' msbuild' ; Tool = ' dotnet' ; Framework = $initializeBuildToolFramework }
607+ $buildTool = @ { Path = $dotnetPath ; Command = ' msbuild' ; Tool = ' dotnet' ; Framework = ' net' }
615608 } elseif ($msbuildEngine -eq " vs" ) {
616609 try {
617610 $msbuildPath = InitializeVisualStudioMSBuild - install:$restore
@@ -620,7 +613,7 @@ function InitializeBuildTool() {
620613 ExitWithExitCode 1
621614 }
622615
623- $buildTool = @ { Path = $msbuildPath ; Command = " " ; Tool = " vs" ; Framework = " net472 " ; ExcludePrereleaseVS = $excludePrereleaseVS }
616+ $buildTool = @ { Path = $msbuildPath ; Command = " " ; Tool = " vs" ; Framework = " netframework " ; ExcludePrereleaseVS = $excludePrereleaseVS }
624617 } else {
625618 Write-PipelineTelemetryError - Category ' InitializeToolset' - Message " Unexpected value of -msbuildEngine: '$msbuildEngine '."
626619 ExitWithExitCode 1
@@ -779,8 +772,10 @@ function MSBuild() {
779772 # new scripts need to work with old packages, so we need to look for the old names/versions
780773 (Join-Path $basePath (Join-Path $buildTool.Framework ' Microsoft.DotNet.ArcadeLogging.dll' )),
781774 (Join-Path $basePath (Join-Path $buildTool.Framework ' Microsoft.DotNet.Arcade.Sdk.dll' )),
782- (Join-Path $basePath (Join-Path net7.0 ' Microsoft.DotNet.ArcadeLogging.dll' )),
783- (Join-Path $basePath (Join-Path net7.0 ' Microsoft.DotNet.Arcade.Sdk.dll' )),
775+
776+ # This list doesn't need to be updated anymore and can eventually be removed.
777+ (Join-Path $basePath (Join-Path net9.0 ' Microsoft.DotNet.ArcadeLogging.dll' )),
778+ (Join-Path $basePath (Join-Path net9.0 ' Microsoft.DotNet.Arcade.Sdk.dll' )),
784779 (Join-Path $basePath (Join-Path net8.0 ' Microsoft.DotNet.ArcadeLogging.dll' )),
785780 (Join-Path $basePath (Join-Path net8.0 ' Microsoft.DotNet.Arcade.Sdk.dll' ))
786781 )
0 commit comments