Using the launchSettings.json command line
every time I find files launchSettings.json
, 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 cannot find any document about the attribute commandName
. What is the use commandName
?
thank
+3
Moritz schmidt
source
to share
1 answer
The command name indicates how the project was started. Visual Studio uses this to run your project.
-
IISExpress
obviously indicates that IIS Express is being used to run the project. -
Project
indicates that the project is running with the .NET CLI directly at the command line.
+8
Henk Mollema
source
to share