

#VISUAL STUDIO FOR MAC ASP CORE CODE#
Launching the app with Ctrl+F5 (non-debug mode) allows you to make code changes, save the file, refresh the browser, and see the code changes.When you run the app, you’ll see a different port number. In the image above, the port number is 1234.

When Visual Studio creates a web project, a random port is used for the web server. That’s because localhost always points to your own local computer, which in this case is running the app you just created. Notice that the address bar shows localhost:port# and not something like. Visual Studio starts IIS Express and runs your app.Tap F5 to run the app in debug mode or Ctl-F5 in non-debug mode. This is a simple “Hello World!” project, and it’s a good place to start, Visual Studio used a default template for the MVC project you just created, so you have a working app right now by entering a project name and selecting a few options. )Ĭomplete the New ASP.NET Core Web Application - MvcMovie dialog: Name the project “MvcMovie” (It’s important to name the project “MvcMovie” so when you copy code, the namespace will match.In the center pane, tap ASP.NET Core Web Application (.NET Core).From the Visual Studio Start page, tap New Project.Īlternatively, you can use the menus to create a new project.
