Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create MVC5 web project in visual studio 2022

I just installed Visual Studio 2022 and I wanted to create a .Net Framework standard MVC5 web application project but, surprisingly, no option exists in the visual studio 2022 startup project template selection window for this type of project. I know Microsoft .Net core is new normal but it's completely removed from creating a new project? I have created the .Net Framework standard MVC5 project in Visual Studio 2019 but it seems it's removed in 2022. So is there any workaround to create this type of project in Visual Studio 2022?

Visual Studio 2019 Picture: Visual Studio 2019 Picture

Visual Studio 2022 Picture: Visual Studio 2022 Picture

like image 696
Liakat Hossain Avatar asked Nov 18 '25 17:11

Liakat Hossain


2 Answers

Go to your VS2022 installer for Individual Components and select:

.Net Framework project and item templates

Enables .NET Framework project templates, item templates & related features for .NET Framework development.

It adds ~ 1.6GB of data, which might be the reason for not being included by default in the first place during the Visual Studio 2022 install.

like image 170
Jazb Avatar answered Nov 21 '25 05:11

Jazb


Open Visual Studio Installer -> select below highlighted option -> click on modify:

enter image description here

like image 21
Jaydeep Suryawanshi Avatar answered Nov 21 '25 05:11

Jaydeep Suryawanshi