Start Visual Studio for Mac and select File > New Project.Add them?, select Yesĭotnet new mvc -o MvcMovie: Creates a new ASP.NET Core MVC project in the MvcMovie folder.Ĭode -r MvcMovie: Loads the MvcMovie.csproj project file in Visual Studio Code.
If a dialog box appears with Required assets to build and debug are missing from 'MvcMovie'. Run the following command: dotnet new mvc -o MvcMovie For more information, see Getting started with VS Code and Visual Studio Code help.Ĭhange to the directory ( cd) that will contain the project. The tutorial assumes familiarity with VS Code. Visual Studio uses the default project template for the created MVC project. Verify that Do not use top-level statements is unchecked.įor more information, including alternative approaches to create the project, see Create a new project in Visual Studio.
Capitalization needs to match each namespace when code is copied. It's important to name the project MvcMovie.