File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -596,7 +596,15 @@ function InitializeBuildTool() {
596
596
ExitWithExitCode 1
597
597
}
598
598
$dotnetPath = Join-Path $dotnetRoot (GetExecutableFileName ' dotnet' )
599
- $buildTool = @ { Path = $dotnetPath ; Command = ' msbuild' ; Tool = ' dotnet' ; Framework = ' net9.0' }
599
+
600
+ # Use override if it exists - commonly set by source-build
601
+ if ($null -eq $env: _OverrideArcadeInitializeBuildToolFramework ) {
602
+ $initializeBuildToolFramework = " net9.0"
603
+ } else {
604
+ $initializeBuildToolFramework = $env: _OverrideArcadeInitializeBuildToolFramework
605
+ }
606
+
607
+ $buildTool = @ { Path = $dotnetPath ; Command = ' msbuild' ; Tool = ' dotnet' ; Framework = $initializeBuildToolFramework }
600
608
} elseif ($msbuildEngine -eq " vs" ) {
601
609
try {
602
610
$msbuildPath = InitializeVisualStudioMSBuild - install:$restore
You can’t perform that action at this time.
0 commit comments