--- title: Getting started with ASP.NET Core MVC and Visual Studio | Microsoft Docs author: rick-anderson description: keywords: ASP.NET Core, ms.author: riande manager: wpickett ms.date: 10/14/2016 ms.topic: article ms.assetid: 1d18b589-e3fd-4dc6-bde6-fb0f41998d78 ms.technology: aspnet ms.prod: aspnet-core uid: tutorials/first-mvc-app/start-mvc --- # Getting started with ASP.NET Core MVC and Visual Studio By [Rick Anderson](https://twitter.com/RickAndMSFT) This tutorial will teach you the basics of building an ASP.NET Core MVC web app using [Visual Studio 2015](https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx). > [!NOTE] > For the tutorial using .NET Core on a Mac see [Your First ASP.NET Core Application on a Mac Using Visual Studio Code](../your-first-mac-aspnet.md). ## Install Visual Studio and .NET Core * Install Visual Studio Community 2015. Select the Community download and the default installation. Skip this step if you have Visual Studio 2015 installed. * [Visual Studio 2015 Home page installer](https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx) * Install [.NET Core + Visual Studio tooling](http://go.microsoft.com/fwlink/?LinkID=798306) > [!Note] > You can also use Visual Studio 2017 RC for this tutorial. Some of the steps will differ slightly; the differences are called out throughout the tutorial. [Download Visual Studio 2017 RC](https://www.visualstudio.com/vs/visual-studio-2017-rc/). When you begin the installation, Visual Studio allows you to select the optional components to include in the installation. Choose the .NET Core and Docker (Preview) workload. ## Create a web app From the Visual Studio **Start** page, tap **New Project**. ![New Project](start-mvc/_static/new_project.png) Alternatively, you can use the menus to create a new project. Tap **File > New > Project**. ![File > New > Project](start-mvc/_static/alt_new_project.png) Complete the **New Project** dialog: * In the left pane, tap **.NET Core** * In the center pane, tap **ASP.NET Core Web Application (.NET Core)** * Name the project "MvcMovie" (It's important to name the project "MvcMovie" so when you copy code, the namespace will match.) * Tap **OK** ![New project dialog, .Net core in left pane, ASP.NET Core web ](start-mvc/_static/new_project2.png) Complete the **New ASP.NET Core Web Application - MvcMovie** dialog: * Tap **Web Application** * Clear **Host in the cloud** * Tap **OK**. ![New ASP.NET Core web app](start-mvc/_static/p3.png) > [!Note] > In Visual Studio 2017 RC, the **Host in the cloud** option is disabled and the dialog is slightly different than the illustration. 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. This is a simple "Hello World!" project, and it's a good place to start, Tap **F5** to run the app in debug mode or **Ctrl-F5** in non-debug mode. ![running app](start-mvc/_static/1.png) * Visual Studio starts [IIS Express](http://www.iis.net/learn/extensions/introduction-to-iis-express/iis-express-overview) and runs your app. Notice that the address bar shows `localhost:port#` and not something like `example.com`. That's because `localhost` always points to your own local computer, which in this case is running the app you just created. When Visual Studio creates a web project, a random port is used for the web server. In the image above, the port number is 1234. When you run the app, you'll see a different port number. * 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. Many developers prefer to use non-debug mode to quickly launch the app and view changes. * You can launch the app in debug or non-debug mode from the **Debug** menu item: ![Debug menu](start-mvc/_static/debug_menu.png) * You can debug the app by tapping the **IIS Express** button ![IIS Express](start-mvc/_static/iis_express.png) The default template gives you working **Home, About** and **Contact** links. The browser image above doesn't show these links. Depending on the size of your browser, you might need to click the navigation icon to show them. ![navigation icon in upper right](start-mvc/_static/2.png) If you were running in debug mode, tap **Shift-F5** to stop debugging. In the next part of this tutorial, we'll learn about MVC and start writing some code. >[!div class="step-by-step"] [Next](adding-controller.md)