TestHostApp build fails in VS2022 ('/ZW' and '/std:c++20' command-line options are incompatible) #16981

Closed
opened 2026-01-31 05:29:01 +00:00 by claunia · 0 comments
Owner

Originally created by @dmachaj on GitHub (Mar 11, 2022).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

f17c2babd4

Windows build number

No response

Other Software

Visual Studio 2022 (17.1.1)

Steps to reproduce

Clone repo
Restore git submodules
Open OpenConsole.sln in Visual Studio
<work around https://github.com/microsoft/terminal/issues/12671>
Build project x64|Debug

Expected Behavior

The build succeeds

Actual Behavior

4>------ Build started: Project: TestHostApp, Configuration: Debug x64 ------
4>main
4>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(560,5): error MSB6006: "CL.exe" exited with code 2.
4>cl : command line error D8016: '/ZW' and '/std:c++20' command-line options are incompatible
4>Done building project "TestHostApp.vcxproj" -- FAILED.
Originally created by @dmachaj on GitHub (Mar 11, 2022). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version f17c2babd4f22c21b9ad0897f884b2b3dbe173f1 ### Windows build number _No response_ ### Other Software Visual Studio 2022 (17.1.1) ### Steps to reproduce Clone repo Restore git submodules Open OpenConsole.sln in Visual Studio <work around https://github.com/microsoft/terminal/issues/12671> Build project x64|Debug ### Expected Behavior The build succeeds ### Actual Behavior ``` 4>------ Build started: Project: TestHostApp, Configuration: Debug x64 ------ 4>main 4>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(560,5): error MSB6006: "CL.exe" exited with code 2. 4>cl : command line error D8016: '/ZW' and '/std:c++20' command-line options are incompatible 4>Done building project "TestHostApp.vcxproj" -- FAILED. ```
claunia added the Needs-TriageResolution-Fix-CommittedIssue-BugNeeds-Tag-Fix labels 2026-01-31 05:29:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16981