This article mainly introduces in detail how to create a new project in Visual Studio, which has certain reference value. Interested friends can refer to it
ASP.NET Core - New Project
In this chapter, we will discuss how to create a new project in Visual Studio.
As long as youinstall the .net core tools of Visual Studio 2015, you can start building a new ASP.net core application by selecting: File → New Project## from the menu.
#In the new project dialog box, you will see the following three different Web project templatesASP.NET Web Application−Simple ASP.NET application Program template. ASP.NET Core Web Application (.NET Core)−This will launch your cross-platform project based on the .net core framework. ASP.NET Core Web Application (.NET Framework)−This starts a new project running the .net framework on Windows systems. Select Templates → Visual C# → Web in the left panel, and then select the ASP.NET Core Web Application (.NET Core) template in the middle panel. Let's also name the application FirstAppDemo and specify the location of the Asp.Net Core project, then click OK. In the above dialog box, you can select a specific template for your Asp.Net application from the available ASP.Net Core templates. ASP.NET Core templates template contains three different templates. Among them, the Web Application template will help you formulate files on yourfile 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 Host in the Cloud and click OK. Visual Studio will nowstart the project after a while.
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 theDebug menu: After selecting the Debug menu, select Start execution (without debugging).
This application can only display Hello World!This runs on localhost:57741. In the system tray window, you can also see that IIS Express is running. Here, you can see the name of the website is FirstAppDemo. If you have development experience in previous versions of Asp.net, the steps in using Vs to develop and run are similar to those in previous version development, so you should be familiar with it. The above is the entire content of this article. I hope it will be helpful to everyone's study. I also hope that everyone will support Script House.The above is the detailed content of Detailed explanation of asp.net core examples three (new project). For more information, please follow other related articles on the PHP Chinese website!