Using the NuGet Service Bus Package
Updated: June 12, 2015
The Microsoft Azure Service Bus NuGet package is the easiest way to reference Service Bus APIs and to configure your application with all of the Service Bus dependencies.
NuGet is a Visual Studio extension that makes it easy to install and update libraries and tools in Visual Studio and Visual Studio Express. To install NuGet, visit http://www.nuget.org, and click Install NuGet. You are directed to the latest download for the NuGet Package Manager. Click the appropriate link for the version you want to download, and when prompted, click Open. This installs the Visual Studio extension. If you have Visual Studio or Visual Studio Express running, you are prompted to restart the application in order to complete the installation.
The Service Bus libraries are bundled into a NuGet package. When you add the NuGet package to a project within Visual Studio, it adds the latest version of the Service Bus libraries to your project, adds the necessary assembly references, and modifies your configuration file (or adds one if it did not previously exist) to add all known Service Bus extensions. Complete the following steps to add the Service Bus NuGet package to your project:
In Solution Explorer, right-click on the References directory and click Manage NuGet Packages.
In the Manage NuGet Packages dialog, click the Online tab.
In the search query box, type Service Bus and then click Enter.
In the results list, select Microsoft Azure Service Bus and click the Install button. The package will be added to your project.
Click the Close button to close the Manage NuGet Packages dialog.
If your Visual Studio solution includes multiple projects, you must add the package to each project separately.