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
Start either Visual Studio 2012 or Microsoft Visual Studio Express 2012 for Web.
In Visual Studio, on the File menu, click New, and then click Project.
Click Console Application, then in the Name box, type a name for the project, then click OK.
In Solution Explorer, right-click the project name, and then click Properties.
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.
In Solution Explorer, right-click References, then click Add Library Package Reference. This option only appears if you have the NuGet extension installed.
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.