Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build ASP.net core applications

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces how to build ASP.net core applications, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

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: File → New Project from the menu

In the new project dialog box, you will see the following three different Web project templates

Template for ASP.NET Web Application − simple ASP.NET application.

ASP.NET Core Web Application (.NET Core) − this will launch your cross-platform project based on. Net core framework.

ASP.NET Core Web Application (.NET Framework) − this starts a new project for. Net framework running 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. Also let's name the application FirstAppDemo and specify the location of the Asp.Net Core project, and then click OK.

In the above dialog box, you can select a specific template for the Asp.Net application from the available ASP.Net Core templates.

The ASP.NET Core templates template contains three different templates.

Among them, 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, close 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, select start execution (do not debug).

This application can only display Hello World!

This runs on localhost:57741.

In the window of the system tray, you can also see that IIS Express is running.

Here, you can see that the name of the website is FirstAppDemo.

If you have previous Asp.net development experience, you should be familiar with the steps in all these aspects such as using Vs to develop and run similar to previous versions.

Thank you for reading this article carefully. I hope the article "how to build ASP.net core applications" shared by the editor will be helpful to you. At the same time, I also hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report