Back to Aspnetcore

Visual Studio

aspnetcore/includes/run-the-app.md

latest1.0 KB
Original Source

Visual Studio

  • Press Ctrl+F5 to run without the debugger.

    [!INCLUDE]

    Visual Studio starts IIS Express and runs the app. The address bar shows localhost:port# and not something like example.com. That's because localhost is the standard hostname for the local computer. Localhost only serves web requests from the local computer. When Visual Studio creates a web project, a random port is used for the web server.

Visual Studio Code

[!INCLUDE]

  • Press Ctrl-F5 to run without the debugger.

    Visual Studio Code starts Kestrel, launches a browser, and navigates to http://localhost:5001. The address bar shows localhost:port# and not something like example.com. That's because localhost is the standard hostname for local computer. Localhost only serves web requests from the local computer.

<!-- End of VS tabs -->