![](/img/trans.png)
[英]How to modify launchSettings.json in order to point to index.html
[英]launchSettings.json commandName usage
每次我發現一些launchSettings.json
文件時,它們的結構如下:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:40088/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express (Staging)": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Staging"
}
}
}
}
在這里找到。
但是,我找不到任何關於屬性commandName
的文檔。
commandName
的用途是什么?
commandName
的值可以指定要啟動的 web 服務器。 commandName
可以是以下任何一項:
IISExpress
:啟動 IIS Express。IIS
:未啟動 web 服務器。 IIS 有望上市。Project
:啟動 Kestrel。Source Microsoft => 在 ASP.NET Core 中使用多個環境
Kestrel是用於 ASP.NET 核心的跨平台 web 服務器。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.