AspNetCore.Docs/aspnetcore/includes/run-the-app6.0.md

1.9 KiB

Visual Studio

  • Press Ctrl+F5 to run without the debugger.

    [!INCLUDE]

    Visual Studio:

    • Starts Kestrel server.
    • Launches a browser.
    • Navigates to http://localhost:port, such as http://localhost:7042.
      • port: A randomly assigned port number for the app.
      • localhost: The standard hostname for the local computer. Localhost only serves web requests from the local computer.

Visual Studio Code

[!INCLUDE]

  • Press Ctrl-F5 to run without the debugger.

    Visual Studio Code:

    • Starts Kestrel server.
    • Launches a browser.
    • Navigates to http://localhost:port, such as http://localhost:7042.
      • port: A randomly assigned port number for the app.
      • localhost: The standard hostname for the local computer. Localhost only serves web requests from the local computer.

Visual Studio for Mac

  • Select Debug > Start Without Debugging to launch the app.

    Visual Studio for Mac:

    • Starts Kestrel server.
    • Launches a browser.
    • Navigates to http://localhost:port, such as http://localhost:7042.
      • port: A randomly assigned port number for the app.
      • localhost: The standard hostname for the local computer. Localhost only serves web requests from the local computer.

    [!INCLUDE]

  • From Visual Studio, press Opt-Cmd-Return to run without the debugger. Alternatively, navigate to the menu bar and go to Run>Start Without Debugging.

    Visual Studio starts Kestrel, launches a browser, and navigates to a randomly assigned port such as http://localhost:7042.