Step 1: Set Up the Development Environment

注:本页面内容可能不完全适用中国大陆地区运营的 Windows Azure服务。如要了解不同地区 Windows Azure 服务的差异, 请参考本网站.

Before starting the tutorial, please ensure that you have installed and configured Service Bus for Windows Server correctly as described in the section Installing and Configuring Service Bus for Windows Server.

Set up development environment

  1. Start either Visual Studio 2012 or Microsoft Visual Studio Express 2012 for Web.

  2. In Visual Studio, on the File menu, click New, and then click Project.

  3. Click Console Application, then in the Name box, type a name for the project, then click OK.

    “新建项目”对话框

  4. In Solution Explorer, right-click the project name, and then click Properties.

  5. Click the Application tab on the left, then select .NET Framework 4 from the Target framework: dropdown. Click Yes when prompted to reload the project.

    “客户端配置文件”对话框

  6. In Solution Explorer, right-click References, then click Add Library Package Reference. This option only appears if you have the NuGet extension installed.

    “添加库程序包引用”对话框

  7. In the Search box, type Service Bus 1.1. Click the Service Bus 1.1 for Windows Server item. Complete the installation and close this dialog.

    SB 服务器