launchSettings.json commandName的用法 [英] launchSettings.json commandName usage

查看:197
本文介绍了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": "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"
      }
    }
  }
}

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的用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆