Skip to content

[CI] - problem building on Visual Studio 2022 Preview v17.13.0 Preview 4.0 #37199

Open
@mikeclayton

Description

Microsoft PowerToys version

main

Installation method

GitHub

Running as admin

None

Area(s) with issue?

General

Steps to reproduce

Trying to build the main branch of the PowerToys solution in Visual Studio 2022 Preview v17.13.0 Preview 4.0 results in the following errors from the ApplicationUpdate project:

Image

Severity Code Description Project File Line Suppression State
Error C2039 'make_unexpected': is not a member of 'nonstd' ApplicationUpdate C:\src\github\microsoft\PowerToys\src\common\updating\updating.cpp 90
Error C3861 'make_unexpected': identifier not found ApplicationUpdate C:\src\github\microsoft\PowerToys\src\common\updating\updating.cpp 90
Error C2039 'make_unexpected': is not a member of 'nonstd' ApplicationUpdate C:\src\github\microsoft\PowerToys\src\common\updating\updating.cpp 142
Error C3861 'make_unexpected': identifier not found ApplicationUpdate C:\src\github\microsoft\PowerToys\src\common\updating\updating.cpp 142
Error C2672 'std::experimental::coroutine_traits<std::future<std::expectedupdating::github_version_info,std::wstring>,bool>::promise_type::return_value': no matching overloaded function found ApplicationUpdate C:\src\github\microsoft\PowerToys\src\common\updating\updating.cpp 90
Error C2672 'std::experimental::coroutine_traits<std::future<std::expectedupdating::github_version_info,std::wstring>,bool>::promise_type::return_value': no matching overloaded function found ApplicationUpdate C:\src\github\microsoft\PowerToys\src\common\updating\updating.cpp 142

Building the same solution in Microsoft Visual Studio Professional 2022 v17.12.4 works fine by comparison.

To reproduce:

Note that the errors disappear if you subsequently build the solution in Microsoft Visual Studio Professional 2022 v17.12.4. However if you perform a "clean" on the ApplicationUpdate project and try to build it again in Preview v17.13.0 Preview 4.0 the error reappears.

I'm not a C / C++ dev so I'm struggling to find a root cause or fix (other than the build in Pro first and then switch back to Preview), but it looks like it's related to the expected-lite submodule - possibly compatibility with different versions of MSVC compiler?

In VS Pro 17.12.4 the version of MSVC in "detailed" build logs is 14.42.34433 (C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\bin\HostX64\x64\CL.exe), but in VS 17.13.0 Preview 4,0 it's 14.43.34808 (C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\CL.exe) - I'm not sure if that's relevant though.

✔️ Expected Behavior

Build completes successfully in Visual Studio 2022 Preview v17.13.0 Preview 4.0

❌ Actual Behavior

Build fails with above errors.

Other Software

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsResolution-Fix CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions