本文介绍了launchSettings.json commandName的用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每次我找到一些 launchSettings.json 文件时,它们具有以下结构:
{ iisSettings:{ windowsAuthentication:false, anonymousAuthentication:true, iisExpress:{ applicationUrl : http:// localhost:40088 /, sslPort:0 } }, profiles:{ IIS Express :{{ commandName: IISExpress, launchBrowser:true, environmentVariables:{ ASPNETCORE_ENVIRONMENT:开发 } }, IIS Express(暂存):{ commandName: IISExpress, launchBrowser:true, environmentVariables:{ ASPNETCORE_ENVIRONMENT:暂存 } } } }在
Everytime I find some launchSettings.json files, they have the following structure:
{ "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "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" } } } }found here.
However, I can't find any document about the attribute commandName.
What is the usage of commandName?
解决方案The command name maps to how the project should be started. Visual Studio uses this to run your project.
- IISExpress obviously indicates that IIS Express is used to start the project.
- Project indicates that the project is executed with the .NET CLI directly on the command line.
更多推荐
launchSettings.json commandName的用法
发布评论