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

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:

主站蜘蛛池模板: 伊宁市| 太白县| 喜德县| 天津市| 达拉特旗| 房山区| 信丰县| 定安县| 临海市| 贺兰县| 大港区| 沁源县| 互助| 金湖县| 新郑市| 宜兰市| 镇赉县| 余庆县| 宜州市| 界首市| 黔东| 垦利县| 夏邑县| 兴仁县| 连江县| 资中县| 平罗县| 平山县| 天台县| 九江市| 吉林市| 苗栗市| 铜陵市| 建昌县| 大关县| 廉江市| 浦东新区| 措美县| 柘城县| 临洮县| 吉安县|