This might be a silly question but i'm not too sure on how to do this so apologies. I have a asp.net core application that works and runs when I type in dotnet run in the terminal. I then browse to the url and it displays as expected. But how do I debug on mac visual studio? I have the environment variable added for development. But just expected the web server to open when I press the play button? Is there some a tutorial out there that could explain?
All tutorials are for console apps but not for web projects?
Im using visual studio for mac ? I've add the following code:
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseUrls("http://localhost:5000")
.Build();
host.Run();
But this doesn't fire a browser off?
Is this not how its supposed to work?
Thanks