Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a console window to an ASP.NET Core application

I have an ASP.NET Core 2.0 application running on windows in .NET Core 2.0:

Commandline:

"C:\Program Files\dotnet\dotnet.exe" exec "C:\Users\zippy\documents\visual studio 2017\Projects\WebApplication4\WebApplication4\bin\Debug\netcoreapp2.0\WebApplication4.dll"

How do I make it appear in a console window?

like image 317
Justin Dearing Avatar asked Oct 09 '17 17:10

Justin Dearing


1 Answers

I was actually launching the code in IIS Express, I just didn't realize it. You have to select the profile in the drop down play button in Visual Studio

IIS Play button setting

Then the console app launches:

Console window

like image 82
Justin Dearing Avatar answered Nov 19 '22 16:11

Justin Dearing