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

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.


Yes, it's possible with IIS Express. Use Microsoft.Extensions.Logging.Debug nuget package: https://github.com/aspnet/Logging/tree/master/src/Microsoft.Extensions.Logging.Debug. Configure logger in the Startup.cs:

loggerFactory.MinimumLevel = LogLevel.Debug;
loggerFactory.AddDebug( LogLevel.Debug );
var logger = loggerFactory.CreateLogger("Startup");
logger.LogWarning("Logger configured!");

And:

Console.WriteLine("Hi!");