Home >Backend Development >C#.Net Tutorial >ap.net core example tutorial to create a new project
In this chapter, we will discuss how to create a new project in Visual Studio.
As long as you have installed the .net core tools for Visual Studio 2015, you can start building a new ASP.net core application by selecting 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 −Simple ASP.NET application Program template.
ASP.NET Core Web Application (.NET Core)−This will start your cross-platform project based on the .net core framework.
ASP.NET Core Web Application (.NET Framework)−This starts a new project of .net framework running on windows system.
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 your file system, and it 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 now start 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 the debug 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 detailed content of ap.net core example tutorial to create a new project. For more information, please follow other related articles on the PHP Chinese website!