How to Create the ASP.NET MVC 4 Sample Application
For the development of our sample application, you need either Visual Studio 2012 (any of the paid versions or thefree Visual Studio Express 2012 for Web), which you can download from http://bit.ly/VS2012Download, or Visual Studio 2010 with the ASP.NET MVC 4 with Language Packs installed.
To create the application, follow these steps:
1. Open Visual Studio.
2. Choose File ➤ New Project, as shown in Figure 1.

Figure 1. Creating a new project in Visual Studio
3. In the New Project dialog, navigate to Templates ➤ Visual C# ➤ Web and select ASP.NET
MVC 4 Web Application, as shown in Figure 2.

Figure 2. Creating an ASP.NET MVC 4 web application
4. Name the project HaveYouSeenMe, leave the other options at their default values, and then click the “OK” button.
5. In the New ASP.NET MVC 4 Project dialog, select the Internet Application template, select the Razor view engine from the drop-down menu, and check the “Create a unit test project” check box, as shown in Figure 3.

Figure 3. Settings for the new ASP.NET MVC 4 web application project
6. Click the “OK” button. Visual Studio will create the application, after which you will be ready to start building the functionality for the application.
For the development of our sample application, you need either Visual Studio 2012 (any of the paid versions or thefree Visual Studio Express 2012 for Web), which you can download from http://bit.ly/VS2012Download, or Visual Studio 2010 with the ASP.NET MVC 4 with Language Packs installed.
To create the application, follow these steps:
1. Open Visual Studio.
2. Choose File ➤ New Project, as shown in Figure 1.
Figure 1. Creating a new project in Visual Studio
3. In the New Project dialog, navigate to Templates ➤ Visual C# ➤ Web and select ASP.NET
MVC 4 Web Application, as shown in Figure 2.
Figure 2. Creating an ASP.NET MVC 4 web application
4. Name the project HaveYouSeenMe, leave the other options at their default values, and then click the “OK” button.
5. In the New ASP.NET MVC 4 Project dialog, select the Internet Application template, select the Razor view engine from the drop-down menu, and check the “Create a unit test project” check box, as shown in Figure 3.
Figure 3. Settings for the new ASP.NET MVC 4 web application project
6. Click the “OK” button. Visual Studio will create the application, after which you will be ready to start building the functionality for the application.
No comments:
Post a Comment