Closed EricBourland closed 7 years ago
I figured out that this is happening because in the project properties window if you set the launch Url, it adds the launchUrl property to the profile, but this is incorrect. Instead it should add an "applicationUrl" property, so your launchsettings.json should look like this:
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "http://localhost:49731",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"console": {
"commandName": "Project",
"applicationUrl": "http://localhost:5432",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
TFS Bug#369165
This is fixed in the upcoming update to the VS 2017 RC.
Given this in launchsettings.json
The first profile will work correctly, the second one will crash when you try to debug the project and give this error in VS2017:
It also fails to attach the javascript debugger.