I created a new project within Visual Studio Community 2022 and the project does not exist in launchSettings.json.
It used to do this be default. However, I must have pressed a key on keyboard or click some inadvertently through a muscle twitch or flinch or something because it no longer creates be default anymore.
What setting would I change to get this to work?
Steps:
Open Visual Studio
‘Create New Project’
Blank Solution – Type in name
Right click solution > Add
New Project
Type in project name BookStoreApp.API
Click Create
And… nothing in profiles…
I’m expecting the project to show in profiles with IIS Express, https, and http.
{
"profiles": {
"http": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:5109"
},
"https": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:7290;http://localhost:5109"
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:50107",
"sslPort": 44322
}
}
}