I have an ASP.NET Core 5 web app.
I noticed if I run it using the project name, DutchTreat, the breakpoint in my Main() method is hit immediately.
However if I run using IIS Express, the Main() method's breakpoint only gets hit when I initiate an HTTP request.
Why is this?
What code is actually running when I start the app using IIS Express but before I make an HTTP request?
Also, why does IIS Express use completely different port numbers for HTTP and HTTPS, whereas when using the project name, it uses 5000 and 5001?
IIS:
Project name:



