Service Bus 1.0 Beta First Tutorial link talks about adding a library reference to a NuGet Package “Service Bus 1.0 Beta (for Windows Server)”. However when I got to adding the library reference the said NuGet package wouldn’t show up in the list of available references. Panic! Not Yet. What the NuGet Package essentially does is it downloads Microsoft.ServiceBus assembly to the project folder and adds it as a project reference and it also adds a reference to System.ServiceModel.dll and System.Runtime.Serialization.dll from the system folders. Now the same can be done by:
1) Add a project reference to;
- Microsoft.ServiceBus.dll from <Root Folder> :\Program Files\Windows Azure Service Bus\1.0\
- System.ServiceModel.dll from <Root Folder>:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\
- System.Runtime.Serialization.dll from <Root Folder>:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\
Note that adding references via. NuGet gives you the latest build version for Microsoft.ServiceBus. But for now what the heck!
2) For the more paranoid ones wanting to go the NuGet way and get the latest version;
- In Visual Studio go to Tools–>Library Package Manager–>Package Manager Console (if you don’t have this option install NuGet from here).
- In the Package Manager Console type “Get-Package -Filter “ServiceBus.v1_0″ -ListAvailable”. This will display the latest Service Bus package.
- Next in the Package Manager Console type “Install-Package ServiceBus.v1_0” and voila the references are added.
Lock and Load!
VeeN