How to build the powertoys project using vscode?
I run vscode .
from the developer command prompt. Then, from a vscode terminal prompt I run a CMake
command suggested by AI.
cmake -S . -B build
The error returned is: CMake Error: The source directory "C:/downloads/microsoft/PowerToys" does not appear to contain CMakeLists.txt.
Ran dotnet build
from the PowerToys folder in vscode. Build failed with 117 errors.
Ran msbuild peek.vcxproj /p:configuration=debug
from the folder that contains the peek.vcxproj
file.
MSBuild version 17.12.12+1cce77968 for .NET Framework
Build started 2/1/2025 10:03:51 AM.
Project "C:\downloads\microsoft\PowerToys\src\modules\peek\peek\peek.vcxproj" on node 1 (de
fault targets).
Project "C:\downloads\microsoft\PowerToys\src\modules\peek\peek\peek.vcxproj" (1) is buildi
ng "C:\downloads\microsoft\PowerToys\src\common\logger\logger.vcxproj" (2) on node 1 (defau
lt targets).
Project "C:\downloads\microsoft\PowerToys\src\common\logger\logger.vcxproj" (2) is building
"C:\downloads\microsoft\PowerToys\src\logging\logging.vcxproj" (3) on node 1 (default targ
ets).
PrepareForBuild:
Creating directory "spdlog\debug\".
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Mi
crosoft.CppBuild.targets(504,5): error MSB8040: Spectre-mitigated libraries are required fo
r this project. Install them from the Visual Studio installer (Individual components tab) f
or any toolsets and architectures being used. Learn more: [C:\downloa
ds\microsoft\PowerToys\src\logging\logging.vcxproj]
In general, how to go about building individual projects, c++ and c#, within the powertoys repo using vscode?