Did you select the "Desktop development with C++" workload during installation? The files are usually located in "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\<version-specific-folder>\include". Check if a new "Windows Desktop Application" in C++ can be created and compiled successfully.
visual studio 2022: missing vcruntime.h

Bostjan Vilfan
0
Reputation points
I want to build an application whose instructions state that it
needs Visual Studio 2015 or higher. So I installed the Community
version of Visual Studio 2022 (on Windows 10) and attempted the
build. The result was that cl.exe could not find the file vcruntime.h. I performed a search for this file, and it was not on my computer.
How should I fix my Visual Studio installation to get vcruntime.h to
be installed?
{count} votes