As the header says: I want the console-window (old school) to popup on a ASP.NET Core Web API project when debugging.
Currently using Visual Studio 2022 Version 17.5.0 Preview 1.0.
This is how the integrated terminal runs like and is not what I want:
There are no options to select in the launchSettings.json for the project
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "http://localhost:5184",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
To reproduce
- Create an ASP.NET Core Web API project with default choices.
- Change profile to "https" like this:
- Press F5 to debug
I have Visual Studio 2019 and it works as expected there, with an console popup.
CodePudding user response:
Go to Tools → Options → Projects and Solutions → ASP .NET Core and change the "Run web server in" option to "External Console"
After doing so, you should have an external command prompt open like so: