1.7 KiB
Visual Studio
-
Press Ctrl+F5 to run without the debugger.
Visual Studio starts IIS Express and runs the app. The address bar shows
localhost:port#
and not something likeexample.com
. That's becauselocalhost
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
-
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 showslocalhost:port#
and not something likeexample.com
. That's becauselocalhost
is the standard hostname for local computer. Localhost only serves web requests from the local computer.
Visual Studio for Mac
-
Select Run > Start Without Debugging to launch the app.
Visual Studio for Mac:
- Starts Kestrel server.
- Launches a browser.
- Navigates to
http://localhost:port
, where port is a randomly chosen port number.
-
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
http://localhost:5001
.