I want to change the default url ( http://localhost:5000 ) when i run the website as a console application .
I edited launchSettings.json but it doesn't work ... it still uses port 5000 :
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:4230/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"website": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:80",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}


%userprofile%\Documents\IISExpress\configin theapplicationhost.config. The other one is located solution-wide configuration in the.vs/configfolder, same filename. This ones determine the port number used when IIS Express launches the application