Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC 5 Template for Visual Studio 2017

I just downloaded Visual Studio 2017. I want to create a ASP.NET web application with MVC5. But I can see only MVC 4. I am not able to find any MVC5 Template.

I tried to find one in NuGet package manager and I can't.

Any suggestions how to get that.

like image 669
Anish varma Adduri Avatar asked Mar 14 '17 21:03

Anish varma Adduri


People also ask

How do I create a .cshtml file in Visual Studio?

Go to solution explorer => Views Folder => Right-click on “Home” Folder >> go to “Add” >> Click on [New Item] as follow. Select MVC 5 View Page with Layout(Razor) from "Add New Item" window and provide the required name like "ViewPageWithLayout. cshtml" click on "Add" button as follow.

Is MVC 5 a core?

The main difference between ASP.NET Core and ASP.NET MVC 5 is their cross-platform approach. ASP.NET Core can be used on Windows, Mac, or Linux, whereas ASP.NET MVC 5 can only be used for applications on Windows. The ASP.NET Core MVC is a framework for building web apps and APIs, optimized for use with ASP.NET Core.

What is MVC template used for?

When you create an ASP.NET MVC application in Visual Studio, you have the option to create controllers and views that support data scaffolding. This walkthrough shows how to create a simple MVC application that takes advantage of the data templates for controllers and views that Visual Studio supports for MVC.


1 Answers

In VS 2017, Microsoft.AspNet.Mvc.5.2.3 is already in built. You can safely ignore the MVC4 templates display while creating the project. They actually are actually MVC5.

like image 73
JSK Avatar answered Nov 17 '22 08:11

JSK