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 get started with ASP.NETCoreMVC in VisualStudio

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

Share

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

This article is about how to get started with ASP.NETCoreMVC in Visual Studio. I think it's very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

The details are as follows

1. Initial environment

Visual studio 2017 Community Edition or other versions. During installation, check "ASP.NET and Web Development" in the "Web and Cloud" group and ".NET Core platform Development" in the "other tools" group.

two。 Create a web application

(1) in Visual Studio, select File > New > Project.

(2) in the left panel of the "New Project" dialog box, click ".NET Core", in the middle panel, click "ASP.NET Core Web Application (.NET Core)", name the project "MVCUserInfo", and click the "OK" button, as shown below:

Configure it as shown in the figure below.

After pressing the "OK" button, vs uses a missing template for the above project, and through the above operation, we now have a working application. Press F5 to run the application in debug mode, or press Ctrl-F5 to run in non-height mode. The effect is shown in the following figure:

It is very cool. There is an automatic loop display area at the top. When the size of the browser window must change, the layout, font, navigation bar and other elements are automatically adjusted, as shown below:

When running the application, vs launches IIS Express and randomly assigns a port number to the temporarily established web service, such as 50969 in this case, but the situation on your computer may be different.

When running in non-debug mode, you can change the code, save files, refresh the browser, and see the code changes, which many people like.

If you run the application in modal mode, you can stop debugging by pressing Shift-F5.

The above is how to get started with ASP.NETCoreMVC in Visual Studio. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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