官术网_书友最值得收藏!

Creating a website

We're going to create a basic MVC 5 website, which will become our sales customer website for the case study.

Before you create the project, set up your local development folder with a main subfolder, which is a good practice for Team Foundation Server (TFS) allowing solutions to be branched easily.

Launch Visual Studio and go to create a new project (go to Start | New Project or press Ctrl + Shift + N) and select Web from the categories and enter a project name:

Click on OK and we will see the Web template options dialog; in the previous versions of Visual Studio, templates will be in the Project dialog:

Select MVC from the template options and leave everything as default. You'll notice that there is a Create remote resources option under the Windows Azure section in the bottom-right corner of the screen, which can automatically provision a website (and database, if required) ready for publishing. We're going to do it manually to help explain how everything fits together.

Click on OK and wait for the solution to load. Next, test whether the website works locally by clicking on the Debug button on the Debug toolbar, or navigate to DEBUG | Start Debugging from the main menu. Your web page should appear in the browser, and you should also notice that the IIS Express web server has launched and is available in the system's tray:

主站蜘蛛池模板: 九寨沟县| 舒城县| 岳阳县| 乌拉特中旗| 张掖市| 柞水县| 施甸县| 北海市| 奉贤区| 碌曲县| 新和县| 安仁县| 军事| 舞阳县| 潜山县| 宁明县| 乡宁县| 龙川县| 大名县| 凤冈县| 台中县| 泗洪县| 梅州市| 达尔| 万州区| 昭苏县| 卢龙县| 德安县| 论坛| 临漳县| 来安县| 万年县| 奉节县| 屏山县| 尼木县| 哈巴河县| 民勤县| 灌阳县| 永川市| 增城市| 仁布县|