@@ -604,14 +604,7 @@ function InitializeBuildTool() {
604
604
}
605
605
$dotnetPath = Join-Path $dotnetRoot (GetExecutableFileName ' dotnet' )
606
606
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' }
615
608
} elseif ($msbuildEngine -eq " vs" ) {
616
609
try {
617
610
$msbuildPath = InitializeVisualStudioMSBuild - install:$restore
@@ -620,7 +613,7 @@ function InitializeBuildTool() {
620
613
ExitWithExitCode 1
621
614
}
622
615
623
- $buildTool = @ { Path = $msbuildPath ; Command = " " ; Tool = " vs" ; Framework = " net472 " ; ExcludePrereleaseVS = $excludePrereleaseVS }
616
+ $buildTool = @ { Path = $msbuildPath ; Command = " " ; Tool = " vs" ; Framework = " netframework " ; ExcludePrereleaseVS = $excludePrereleaseVS }
624
617
} else {
625
618
Write-PipelineTelemetryError - Category ' InitializeToolset' - Message " Unexpected value of -msbuildEngine: '$msbuildEngine '."
626
619
ExitWithExitCode 1
@@ -779,8 +772,10 @@ function MSBuild() {
779
772
# new scripts need to work with old packages, so we need to look for the old names/versions
780
773
(Join-Path $basePath (Join-Path $buildTool.Framework ' Microsoft.DotNet.ArcadeLogging.dll' )),
781
774
(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' )),
784
779
(Join-Path $basePath (Join-Path net8.0 ' Microsoft.DotNet.ArcadeLogging.dll' )),
785
780
(Join-Path $basePath (Join-Path net8.0 ' Microsoft.DotNet.Arcade.Sdk.dll' ))
786
781
)
0 commit comments