简体   繁体   English

Visual Studio 2017中的MVC Web应用程序开发

[英]MVC web application Development in Visual Studio 2017

I am newbie in ASP.net MVC. 我是ASP.net MVC的新手。 Using VS 2017, I'm trying to develop a application in MVC but can not create empty solution at the beginning of the project, it always gives me the templete with Home, about and Contact pages. 使用VS 2017,我试图在MVC中开发应用程序,但无法在项目开始时创建空的解决方案,它始终使我拥有Home,about和Contact页面的模板。 how can I get a empty solution in which I can add model, views and Controllers. 如何获得一个空的解决方案,可以在其中添加模型,视图和控制器。

Open your Visual Studio 2017, Click File-> New -> Project 打开Visual Studio 2017,单击文件->新建->项目

A window will open, 将会打开一个窗口,

-at the Left side Select Visual C#-> Web -在左侧选择Visual C#-> Web

-select ASP.NET Web application (.NET Framework) 选择ASP.NET Web应用程序(.NET Framework)

After Entering the name of the project Click Next, 输入项目名称后,单击“下一步”,

[Here is the trick] [这是诀窍]

Choose Empty for template, on the same window, there will be three check-boxes [web Forms, MVC and Web API] 为模板选择“空”,在同一窗口上,将有三个复选框[Web窗体,MVC和Web API]

Make sure that the MVC Checkbox is checked and click OK and you will have the Empty MVC project 确保已选中“ MVC复选框”,然后单击“确定”,您将获得Empty MVC项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM