I have a problem starting the Kestrel server from VS2017. In VS2015, launchSettings.jsonI was able to set the port as follows:
"Kestrel": {
"launchUrl": "http://localhost:5010/api",
"environmentVariables": {
"ASPNETCORE_URLS": "http://localhost:5010"
}
Now this setting is ignored by the kestrel. If I change the name of the parameter:, "ASPNETCORE_SERVER.URLS"I get a warning about outdated settings, which indicates that the file launchSettings.jsonis still being processed.
I also tried using other port environment variable settings ( ASPNETCORE_URLS), but with dotnet run --server.urls http://0.0.0.0:5010no.
source
share