当前位置:网站首页>ASP. NET CORE Study01
ASP. NET CORE Study01
2022-06-28 12:30:00 【When the human stars shine】
asp.net core Multiple startup modes
asp.net core You can use the project name ,iis express or iis To start the , It is more in-process or out of process hosting ,asp.net core web The application's support servers are not the same , Starting with the project name ignores in-process and out of process differences by default , While using iis express and iis Are obviously different .

asp.net core web The application defaults to process hosting .
asp.net core The project structure of a typical project
Here's the picture :
Typical asp.net core mvc The project structure is shown in the figure , among wwwroot The following are some static files, generally js ,css etc. ,controllers Below are the controllers ,models Model class in ,views The following view is generally cshtml file ,program.cs As a whole asp.net core web Application startup class , It is the starting point of the whole program ,startup.cs It's configuration asp.net core Configuration classes of various services of the project ,appsettings.json Configuration information of the project .
asp.net core Under the project of launchsettings.json and appsettings.json
generally speaking ,launchsettings.json Is the project startup configuration file for the entire project , Configuration here refers to various configurations that need to be carried out when the whole project is started , Such as the designation of the program running environment , meanwhile launchsettings Files are used only in the local development environment , We don't need to publish it to the production environment .
Some independent configurations are required when the project is published to the production environment , You need to use appsettings The configuration file , In this file, the configuration information of application running will be stored , For example, database connection string .
边栏推荐
猜你喜欢

智联招聘基于 Nebula Graph 的推荐实践分享

Given two points and a point with a middle scale, find the coordinates of the point

FineReport安装教程

Deep learning has a new pit! The University of Sydney proposed a new cross modal task, using text to guide image matting

ASP.NET CORE Study04

KDD 2022 | 图“预训练、提示、微调”范式下的图神经网络泛化框架

KDD 2022 | graph neural network generalization framework under the paradigm of "pre training, prompting and fine tuning"
![[unity Editor Extension Foundation], editorguilayout (I)](/img/f2/42413a4135fd6181bf311b685504b2.png)
[unity Editor Extension Foundation], editorguilayout (I)

【Unity编辑器扩展基础】、EditorGUILayout (三)

In less than an hour, apple destroyed 15 startups
随机推荐
Is tongdaxin stock software reliable? Is it safe to trade stocks on it?
【C语言】判断三角形
Two writing methods of JNI function
【附源码+代码注释】误差状态卡尔曼滤波(error-state Kalman Filter),扩展卡尔曼滤波,实现GPS+IMU融合,EKF ESKF GPS+IMU
Truly understand triode beginner level chapter (Classic) "suggestions collection"
Jerry's wif interferes with Bluetooth [chapter]
Unity Editor Extension Foundation, GUI
Deep learning has a new pit! The University of Sydney proposed a new cross modal task, using text to guide image matting
JNI confusion of Android Application Security
Url追加参数方法,考虑#、?、$的情况
【C语言】结构体嵌套二级指针的使用
group_concat学习与配置
Mathematical principle derivation of structured light phase shift method + multifrequency heterodyne
请问通达信股票软件可靠吗?在上面交易股票安全吗?
ASP.NET CORE Study07
吐血推荐17个提升开发效率的“轮子”
期货开户有门槛吗,如何网上安全的开通期货账户
pwn入门(1)二进制基础
攻防世界新手入门hello_pwn
Map sorting tool class