Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a Console output in ASP.NET Core with IIS Express

ASP.Net Core documentation here has a nice console logging output like in the picture below with colors for various LogLevels. I have now created an application in Visual Studio and I see that it now runs behind IIS Express and I don't see the console anymore. I remember when I did run beta, then it did pop up Kestrel directly with this nice Console output.

Is it possible to get this nice window now?

P.S. It's a bit strange that the documentation still contains these images that you cannot even see.

enter image description here

like image 720
Ilya Chernomordik Avatar asked Oct 20 '16 07:10

Ilya Chernomordik


People also ask

How do I open the console in .NET core?

Regardless, you can still see the console output in the Output pane in Visual Studio. There's a drop down there called "Show output from" and one of the choices is "ASP.NET Core Web server". Select this and you'll see all the console output.

How do I display console output?

Press CTRL + F5 to see your output. This will wait the console screen until you press any key.

How do I run .NET core web API in IIS Express?

Enable IIS on Server From your Windows Server , Open Server Manager, then IIS, then Manage and select 'Add Roles and Features', then go to features, then see if the Web IIS checkbox is enabled, if not, then proceed with installing it.

How do I display the output window or console in Visual Studio?

in the "Ouput Window". you can usually do CTRL-ALT-O to make it visible. Or through menus using View->Output.


1 Answers

In addition to Dawid Rutkowski's answer, on the top dropdown, don't select IISExpress, select the application name. You should be able to see the console and the web page.

like image 131
maxspan Avatar answered Oct 05 '22 01:10

maxspan