ASP.NET MVC3 Creating New Project
This tutorial is based on http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/intro-to-aspnet-mvc-3
|
1) Start
2) Creating Your First Application
2-2) Project Settings
2-3) Default Project Template Files
3) Debugging Project
1) Start
1-1a) Start by running Visual Web Developer 2010 Express ("Visual Web Developer" for short) and select New Project from the Start page.
or
1-1b) Use the menu and select File > New Project.
2) Creating Your First Application
2-1) You can create applications using either Visual Basic or Visual C# as the programming language. Select Visual C# on the left and then select ASP.NET MVC 3 Web Application. Name your project "MvcMovie" and then click OK.
2-2) Project Settings
In the New ASP.NET MVC 3 Project dialog box, select Internet Application. Check Use HTML5 markup and leave Razor as the default view engine.
Click OK.
2-3) Default Project Template Files
Visual Web Developer used a default template for the ASP.NET MVC project you just created, so you have a working application right now without doing anything! This is a simple "Hello World!" project, and it's a good place to start your application.
3) Debugging Project
3-1) From the Debug menu, select Start Debugging.
3-2) Notice that the keyboard shortcut to start debugging is F5.
F5 causes Visual Web Developer to start a development web server and run your web application. Visual Web Developer then launches a browser and opens the application's home page. Notice that the address bar of the browser says localhost and not something like example.com. That's becauselocalhost always points to your own local computer, which in this case is running the application you just built. When Visual Web Developer runs a web project, a random port is used for the web server. In the image below, the random port number is 43246. When you run the application, you'll probably see a different port number.
|
3-3) Outcome:
No comments:
Post a Comment