visual studio 2022: missing vcruntime.h

Bostjan Vilfan 0 Reputation points
2023-02-26T15:35:24.1133333+00:00

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?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,863 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 114.5K Reputation points
    2023-03-01T02:12:35.5533333+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments