Asp.net launchSettings.json命令名用法
每次我找到一些Asp.net launchSettings.json命令名用法,asp.net,.net,asp.net-core,Asp.net,.net,Asp.net Core,每次我找到一些launchSettings.json文件时,它们的结构如下: { "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:40088/", "sslPort": 0 } }, "profiles": {
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
的用法是什么?命令名映射到项目应该如何启动。VisualStudio使用它来运行项目
显然表明IISExpress用于启动项目李>IISExpress
表示直接在命令行上使用.NET CLI执行项目Project
谢谢!拥有自己的命令名怎么样?我见过类似commandName的项目:“MyProject测试”。然后会发生什么?是的,它曾经是项目名称。但是,如果您使用今天的工具配置它,它将无法运行您的项目。再次感谢您,您在哪里找到此信息的?这可能是我无法部署应用程序的原因吗?我们在launchSettings.json中有自己的命令名。对于Core2.2,请看这个