I am writing an ASP.NET Core application and I have a launchSettings.json
file with the following content:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:50251",
"sslPort": 44349
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"AspNetDockerDemo": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
},
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}"
}
}
}
Question: Where are the { }
placeholders substituded and where are the values definied by which they are substituted? What will I have to do if I want to define such values on my own?
launchSettings.json
file is a configuration for VisualStudio to config the execution environment. So there is no application code that will handle this data. The quetion is by what values the parametersScheme
andServiceHost
in the execution environment are set/replaced.