Reputation: 2480
I created a .NET Core 2.2 web application project in VS 2017 and the ASP.NET Core Web Server
option from the console output is not visible when the application runs with IIS Express
.
By .NET Core 2.1 web application projects this option is there and it is showing the output without any problems.
Upvotes: 3
Views: 4176
Reputation: 9558
The simplest option is to change your currently selected debugger run option (the dropdown with the green "play" button / F5) from IIS, to the name of your project (e.g. so that "FooWebApp" shows up now in the dropdown). This way the browser will still open like it was before, but the console window will start showing as well.
On the other route with Tuvia's answer above (thanks!), it's actually Properties/launchSettings.json
which stores / determines these actions. There you can also set "launchBrowser": false
if wanted, or if you want to change if the console window opens, within "IIS Express"
profile, manually add: "ancmHostingModel": "OutOfProcess"
(or else set to InProcess
).
Upvotes: 1
Reputation: 872
I think you have to right-click on Project->Properties. Then on the right side menu to select "Debug". In Web Server Settings find "Hosting Model" and select "Out of process"
Upvotes: 3