4

Missing Windows Form Templates

Good Day Everyone. Above is the image of the templates I have in my newly installed Visual Studio 2015. I installed it yesterday and noticed that some templates are missing. Specifically Windows Form. I don't know why it became like this.

What do you think is the reason behind this? And what should I do. Thanks.

Jaycee Evangelista
  • 1,107
  • 6
  • 22
  • 52
  • Related post - [No templates in Visual Studio 2017](https://stackoverflow.com/q/41189398/465053) – RBT Apr 18 '20 at 12:46

2 Answers2

4

I had a similar problem and solved it by installing the "C++/CLI support" under the Desktop Development with C++.

Steps:

  • 1: click on New Project in Visual Studio 2017
  • 2: click on "Open Visual Studio Installer" which is right above the Name field box
  • 3: when the installer opens, click on "Desktop Development with C++" on the right-hand side. Step 3
  • 4: check the "C++/CLI support" Step 4
  • 5: Close down Visual Studio 2017
  • 6: click the Modify button at the bottom left. Step 6
  • 7: Re-launch VS when it is done.
  • 8: if all has gone right, you should have access to windows forms in c# What it should look like

The reason may be due to Windows Forms running on a C++ framework. Without the C++/CLI Support installed, the Windows Forms might not run.

Marcello B.
  • 4,177
  • 11
  • 45
  • 65
Bretonator
  • 71
  • 8
1
  1. Close Visual Studio

  2. Open "visual studio command prompt" and run the command:

    devenv /installvstemplates

Source

Abdulrahman Bres
  • 2,603
  • 1
  • 20
  • 39