当前位置:网站首页>ASP.NET CORE Study01
ASP.NET CORE Study01
2022-06-28 12:19:00 【人类群星闪耀时】
asp.net core 多种启动方式
asp.net core 可以通过项目名称,iis express 或 iis 进行启动,更具是进程内还是进程外托管,asp.net core web应用程序的支持服务器并不一样,使用项目名称启动默认会忽略进程内进程外的区别,而使用iis express 和 iis 都是明显的不同。

asp.net core web 应用程序默认是进程托管。
asp.net core 典型项目的项目结构
如下图:
典型的asp.net core mvc 项目结构如图,其中wwwroot 下是一些静态文件一般是js ,css等,controllers 下是各个控制器,models 中模型类,views 下是视图一般是cshtml 文件,program.cs 是整个asp.net core web应用程序的启动类,是整个程序的起点入口,startup.cs 是配置asp.net core项目的各种服务的配置类,appsettings.json 项目的配置信息。
asp.net core 项目下的launchsettings.json 和appsettings.json
一般而言,launchsettings.json 是整个项目的项目启动配置文件,在这里配置是整个项目启动时需要进行的各种配置,如程序运行环境的指定,同时launchsettings 文件仅使用于本地开发环境,我们不需要把它发布到生产环境中。
而在项目发布到生产环境时需要使用某些独立的配置,就需要使用appsettings 配置文件,在该文件中将存放应用程序运行的配置信息,比如数据库连接字符串等。
边栏推荐
- What are the common modes of financial products in 2022?
- PrecomputedTextCompat用法及原理
- After importing resources, unity also manually modifies the properties of resources? This code can save you a lot of time: assetpostprocessor
- 分页样式 flex设置成在尾部显示(即使页数加长 也不会因为在末尾而换行)
- UGUI强制刷新Layout(布局)组件
- Url追加参数方法,考虑#、?、$的情况
- MapReduce project case 3 - temperature statistics
- EMC RS485 interface EMC circuit design scheme
- 杰理之wif 干扰蓝牙【篇】
- [unity Editor Extension practice] dynamically generate UI code using TXT template
猜你喜欢

【C语言】二叉树的实现及三种遍历

EMC RS485 interface EMC circuit design scheme

Redis 原理 - List

【C语言】判断三角形

不到一小时,苹果摧毁了15家初创公司

Ugui force refresh of layout components

【Unity编辑器扩展实践】、通过代码查找所有预制

攻防世界新手入门hello_pwn

Unity Editor Extension Foundation, editorguilayout (III)
![[unity Editor Extension practice], find all prefabrications through code](/img/0b/10fec4e4d67dfc65bd94f7f9d7dbe7.png)
[unity Editor Extension practice], find all prefabrications through code
随机推荐
Multi dimensional monitoring: the data base of intelligent monitoring
UGUI使用小技巧(五) Scroll Rect组件的使用
After importing resources, unity also manually modifies the properties of resources? This code can save you a lot of time: assetpostprocessor
Usage and principle of precomputedtextcompat
Custom title bar view
Prefix and (one dimension)
Unity加载设置:Application.backgroundLoadingPriority
Difference (one dimension)
从SimpleKV到Redis
什么是泛型,怎么使用泛型分析
Unity Editor Extension Foundation, guilayout
【JS】斐波那契数列实现(递归与循环)
Unity Editor Extension Foundation, editorguilayout (III)
In less than an hour, apple destroyed 15 startups
【Unity编辑器扩展基础】、GUI
Unity load settings: application backgroundLoadingPriority
[unity Editor Extension practice], find all prefabrications through code
智联招聘基于 Nebula Graph 的推荐实践分享
结构光之相移法+多频外差的数学原理推导
Redis principle - List