This article focuses on how to create a new project in Visual Studio, with a certain reference value, interested in small partners can refer to
ASP. NET Core-New project
In this chapter, we will discuss how to create a new project in Visual Studio.
As long as you have the. NET core tools for Visual Studio 2015 installed, you can start building a new ASP. Select from the menu: File→new Project
In the New Project dialog box, you will see the following three different Web project templates
ASP. NET Web application− templates for simple ASP.
ASP. NET core Web application − This launches your cross-platform project based on the. NET Core framework.
ASP. NET Core Web application-This starts a new project that runs the. NET Framework on the Windows system.
Select the Templates→visual c#→web in the left panel, and then select the ASP. NET core Web Application template in the middle panel. Also let's name the app Firstappdemo and specify the location of the ASP. NET Core project, then click OK.
In the dialog box above, you can select a specific template for an ASP. NET application from the available ASP. NET Core template.
The ASP. NET Core templates template contains three different templates.
The Web application template will help you develop files on your file system, which allows you to develop directly using MVC.
Here we will use an empty template that will help us build it from scratch.
Let's select the empty template, turn off the host in the cloud and click OK.
Visual Studio will now start the project for some time.
In the Solution Explorer window, you will see all the files in this project.
Let's run this application, you can start by pressing CTRL F5, or through the Debug menu: After selecting the Debug menu, choose Start (Not debugging).
This app can only show Hello world!
This runs in localhost:57741.
In the windows of the system tray, you can also see that IIS Express is running.
Here, you can see the name of the website as Firstappdemo.
If you have a previous version of ASP development experience, using VS development and run all these aspects of the steps are similar to the previous version development, you should not be unfamiliar.