0

Noob here! I'm trying to create a Web Application using .NET 4 framework with MVC template in Visual Studio PRO 2019, as our server still uses .NET 4.

Steps I used to create project : Step 1 --> Step 2 --> Step 3

The MVC templates are not populated and the Text boxes are disabled for .NET 4 (See Step 3), but MVC template appears for .NET Framework 4.5 and above though, check Image 1, Image 2

That's when I came across the Comment in the post Missing MVC template in Visual Studio 2015, My question is, Is it possible to even create MVC template using .NET framework 4 in Visual studio 2019 ?

I'd appreciate any leads here. Thanks in advance

Vish
  • 3
  • 5

3 Answers3

0

Based on my search, you can see the following link about the similar question Asp.Net Mvc Template missing in the Developer Community.

The last reply by Phil Henning [MSFT] says that it will occur the problem when you select .NET Framework 4 or earlier.

If you still want to solve the problem, you can report a problem in Developer Community.

Jack J Jun
  • 5,633
  • 1
  • 9
  • 27
0

Only ASP.NET MVC 5.x is supported in VS2017 and above,

https://developercommunity.visualstudio.com/t/using-aspnet-mvc4-in-vs2017/284556

So you won't be able to target .NET Framework 4.0, but 4.5 and above, as that's the dependency of ASP.NET MVC 5.

Lex Li
  • 60,503
  • 9
  • 116
  • 147
0

Check .Net 4.x framework is installed in VisualStudio Installer.

Jagdish Kumar
  • 225
  • 1
  • 4
  • 14