Terminal failed to build with error MSB8020 on MSVC #18556

Open
opened 2026-01-31 06:17:36 +00:00 by claunia · 0 comments
Owner

Originally created by @nnfdnkns on GitHub (Sep 28, 2022).

Windows Terminal version

No response

Windows build number

No response

Other Software

No response

Steps to reproduce

Terminal failed to build with error MSB8020:The build tools for v143 (Platform Toolset = 'v143') cannot be found. add /p:PlatformToolset=v142, It also failed.

repro steps:
1.git -C "F:\gitP" clone https://github.com/microsoft/terminal microsoft\terminal
2.cd F:\gitP\microsoft\terminal
3.set path=F:\gitP\microsoft\terminal\dep\nuget;%PATH%
4.nuget restore OpenConsole.sln 2>&1
5.set CL=/wd4189 /wd5104 /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS %CL%
6.msbuild /m /p:Platform=x64 /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0.22000.0 /p:PlatformToolset=v142 OpenConsole.sln /t:Restore /t:Rebuild 2>&1

Expected Behavior

Terminal could build successfully

Actual Behavior

2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets(331,5): error MSB4036: The "GetFrameworkSdkPackages" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin" directory. [F:\gitP\microsoft\terminal\src\cascadia\CascadiaPackage\CascadiaPackage.wapproj]

Originally created by @nnfdnkns on GitHub (Sep 28, 2022). ### Windows Terminal version _No response_ ### Windows build number _No response_ ### Other Software _No response_ ### Steps to reproduce Terminal failed to build with error MSB8020:The build tools for v143 (Platform Toolset = 'v143') cannot be found. add /p:PlatformToolset=v142, It also failed. **repro steps:** 1.git -C "F:\gitP" clone https://github.com/microsoft/terminal microsoft\terminal 2.cd F:\gitP\microsoft\terminal 3.set path=F:\gitP\microsoft\terminal\dep\nuget;%PATH% 4.nuget restore OpenConsole.sln 2>&1 5.set _CL_=/wd4189 /wd5104 /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS %_CL_% 6.msbuild /m /p:Platform=x64 /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0.22000.0 /p:PlatformToolset=v142 OpenConsole.sln /t:Restore /t:Rebuild 2>&1 ### Expected Behavior Terminal could build successfully ### Actual Behavior 2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets(331,5): error MSB4036: The "GetFrameworkSdkPackages" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin" directory. [F:\gitP\microsoft\terminal\src\cascadia\CascadiaPackage\CascadiaPackage.wapproj]
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 06:17:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18556