Skip to content

Commit dde48f1

Browse files
authored
Under some scenarios al build task cannot find the sdk build tools (#5460)
1 parent c921668 commit dde48f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.cmd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,14 @@ echo.
555555
echo.
556556

557557
echo ---------------- Done with arguments, starting preparation -----------------
558+
rem set TargetFrameworkSDKToolsDirectory --- needed for sdk to find al.exe.
559+
if not "%TargetFrameworkSDKToolsDirectory%" == "" ( goto have_TargetFrameworkSDKToolsDirectory )
560+
set TargetFrameworkSDKToolsDirectory=%WindowsSDK_ExecutablePath_x64%
561+
562+
if not "%TargetFrameworkSDKToolsDirectory%" == "" ( goto have_TargetFrameworkSDKToolsDirectory )
563+
set TargetFrameworkSDKToolsDirectory=%WindowsSDK_ExecutablePath_x86%
564+
565+
:have_TargetFrameworkSDKToolsDirectory
558566

559567
set BuildToolsPackage=Microsoft.VSSDK.BuildTools.15.6.170
560568
if "%VSSDKInstall%"=="" (
@@ -574,6 +582,7 @@ if "%RestorePackages%"=="" (
574582
@echo VSSDKInstall: %VSSDKInstall%
575583
@echo VSSDKToolsPath: %VSSDKToolsPath%
576584
@echo VSSDKIncludes: %VSSDKIncludes%
585+
@echo TargetFrameworkSDKToolsDirectory: %TargetFrameworkSDKToolsDirectory%
577586

578587
@call src\update.cmd signonly
579588

0 commit comments

Comments
 (0)