Creating an MVC Project

You create an ASP.NET MVC application using the Visual Studio template, ASP.NET MVC 2 Web Application. This is an application template and not a website template. Therefore, it has its own project file and is configured slightly differently.

You can access this template from the Add New Project dialog box (right-click your solution and Select Add, New Project or select the menu option File, New, Project). Figure 17.70 shows an example of creating a site based on this template. Notice this experience is not unlike creating other projects in Visual Studio.

Figure 17.70 You create an ASP.NET MVC project using the related project template.

Visual Studio gives you the option to create a related unit test project for your MVC ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.