We are having an "only on my machine" issue that nobody can figure out.
We have a .NET 5 Api that we run under Kestrel for development purposes. On every other dev VM running the API in Visual Studio picks up on the values in launchSettings.json and launches on the correct ports. However on a the VM in question, it only launches on the default 5000/5001 ports.
This is the entry for the launchSettings.json file.
"profiles": {
"My.Api": {
"commandName": "Project",
"environmentVariables": {
"LogStorageAccountConnectionString": "UseDevelopmentStorage=true",
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:7001;http://localhost:7000"
}
}
I know there is a way to tell dotnet run to explicitly ignore launchSettings.json but could not find a setting in Visual Studio that would trigger that behavior.
We also thought it might be a permissions issue on the folder because they were a bit weird so we cloned our repo into a new folder and set up the Api again to be run locally. It still ran on 5000/5001.
The lot of us are stumped. Any ideas?