launchSettings.json commandName的用法

编程入门 行业动态 更新时间:2024-10-27 12:27:38
本文介绍了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的用法

本文发布于:2023-11-15 11:20:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1593977.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:launchSettings   json   commandName

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!