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?

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 125.8K 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

  2. 一航 袁 0 Reputation points
    2025-09-27T05:45:05.67+00:00

    查看是否安装了windows11 SDK 或 windows10 SDK

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.