3

Installed the latest version of VS2022 with the workload desktop development with c++ (Accepted all default settings and checkboxes) , The downloading and installation were completed successfully. enter image description here

When I launched visual studio 2022 to create a new project, there are no CPP project templates as you can see, reinstalling and repairing didn't help, How to fix it?

enter image description here

motevalizadeh
  • 5,244
  • 14
  • 61
  • 108
  • 2
    Does this answer your question? [No templates in Visual Studio 2017](https://stackoverflow.com/a/46895353/16764520) – Minxin Yu - MSFT Mar 29 '22 at 09:00
  • For those still figuring out, I've tried the above comment, and it worked for VS 2022. I'm reposting that url from Minxin Yu above. https://stackoverflow.com/a/46895353/16764520 – XPD Jun 19 '22 at 15:19

2 Answers2

0

I copied the VC folder from

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\ProjectTemplates

to

C:\Users<user>\Documents\Visual Studio 2022\Templates\ProjectTemplates

and restarted the Visual Studio. Now I see all the C++ project templates.

Mohammad Dehghan
  • 17,853
  • 3
  • 55
  • 72
-3

This solves my problem C++ Project templates don't appear in visual studio 2022?

  1. Make sure Visual Studio is up to date.
  2. Open Visual Studio Installer. Press more and then repair.
  3. You should be able to see the template once it finishes.
keyman
  • 1
  • 1
  • 2
    OP already mentioned: " reinstalling and repairing didn't help" So how do you think your answer is helpful? – Klaus Apr 05 '22 at 10:39