--- title: Adding a controller | Microsoft Docs author: rick-anderson description: How to add a controller to a simple ASP.NET Core MVC app keywords: ASP.NET Core, MVC ms.author: riande manager: wpickett ms.date: 02/28/2017 ms.topic: get-started-article ms.assetid: e04b6665-d0de-4d99-b78f-d6a0c4634a87 ms.technology: aspnet ms.prod: asp.net-core uid: tutorials/first-mvc-app/adding-controller --- # Adding a controller to a ASP.NET COre MVC app with Visual Studio By [Rick Anderson](https://twitter.com/RickAndMSFT) [!INCLUDE[adding-controller1](../../includes/mvc-intro/adding-controller1.md)] * In **Solution Explorer**, right-click **Controllers > Add > New Item** ![Contextual menu](adding-controller/_static/add_controller.png) * Select **MVC Controller Class** * In the **Add New Item** dialog, enter **HelloWorldController**. ![Add MVC controller and name it](adding-controller/_static/ac.png) [!INCLUDE[adding-controller2](../../includes/mvc-intro/adding-controller2.md)] In Visual Studio, in non-debug mode (Ctrl+F5), you don't need to build the app after changing code. Just save the file, refresh your browser and you can see the changes. >[!div class="step-by-step"] [Previous](start-mvc.md) [Next](adding-view.md)