How to create empty C++ project in Visual Studio 2022

Avenash Kabeera 0 Reputation points
2023-08-03T03:28:06.3233333+00:00

I am not empty so find "Empty Project" in visual studio 2022. I have no problem creating a project in visual studio 2019. The only c++ project I am able to create is a "Shared Items Project" but I've installed all the C++ libraries as shown below.

Whenever I try to open project that was created with visual studio 2019, it says it's missing components, and when I click on install, the visual studio installer says I have all the required components. User's image

User's image

User's image

Developer technologies Visual Studio Setup
Developer technologies C++
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-08-03T08:42:53.9266667+00:00

    Hi @Avenash Kabeera

    Welcome to Microsoft Q&A! 

    Do you mean that the project that was created with VS2019 is “Empty Project”? If no, please tell us the project type. 

    You can check the installed workloads and components of VS2019, ensure that the same workloads and components are installed on VS2022. 

    Please close all running VS instances > run “Visual Studio installer” as administrator > Visual Studio 2022 > Modify > uncheck “Desktop development with C++” workload > Modify > after completion, please close the Visual Studio Installer.

    Then, open the project with VS2022 > warning popup > click on “Install” > install required components. 

    You can also try to repair VS2022 with Visual Studio Installer or reinstall VS2022 with “Desktop development with C++” workload. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

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