Stam
Stam

Reputation: 2480

ASP .NET Core Web Server console output not visible in VS for .NET Core 2.2

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

Answers (2)

Nicholas Petersen
Nicholas Petersen

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

Tuvia Khusid
Tuvia Khusid

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"enter image description here

Upvotes: 3

Related Questions