'Visual Studio 2022 C++ standard libraries could not be found

I installed the visual studio 2022 community edition with a C++ Desktop development packageScreenshot of Visual Studio Installer. When a new console application is built getting errors C++ standard libraries could not be found. Please let me know how to resolve this issue.Screenshot of Visual Studio 2022 build errors.



Solution 1:[1]

Start Visual Studio Installer and select "desktop development with C++".

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cic