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:
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:
- check out the PowerToys repo into a new folder
- install submodules per https://github.com/microsoft/PowerToys/tree/main/doc/devdocs
git submodule update --init --recursive
- open PowerToys.sln in Visual Studio 2022 Preview v17.13.0 Preview 4.0
- build the solution
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