NuGet
NuGet is an open source project that simplifies integration of third parties into your visual studio projects during development. To learn more or to download it, go to NuGet web site for more details: http://nuget.org/
NServiceBus and NuGet
NServiceBus uses NuGet as a vehicle to ease its inclusion into your projects.
Straight from Visual Studio, it is possible to install the latest NServiceBus Build or the latest stable version, depending on your requirements.
Getting The Latest Stable NServiceBus Release Using NuGet
After installing NuGet you have a few ways to get NServiceBus using NuGet. Right click your project references and choose "Manage NuGet Packages".
The following window will open:
At the following window, search for NServiceBus, and select "Install". Alternatively you can also get to NuGet package manager by: “Library Package Manage” and then select “Manage NuGet Packages for Solution… “
Last but not least, you can open the Package Manager Console and type the following to install NServiceBus core libraries:
PM> Install-Package NServiceBus
Use the following to get a specific version
PM> Install-Package NServiceBus -Version 3.3.0
NServiceBus package comes will all the necessary dependencies to start using NServiceBus immediately. In addition to NServiceBus core libraries NServiceBus NuGet package will also install all other required libraries for it to work right after installation (for example, log4net for logging).
If you would like to use the NServiceBus hosting process, you should install the following package, it will also install the NServiceBus core libraries for you:
PM> Install-Package NServiceBus.Host
If you already downloaded the latest release and just want to be updated, you can use the following:
PM> Update-Package NServiceBus
Downloading NServiceBus Latest Build
NServiceBus latest build can be downloaded from NServiceBus builds server: http://builds.nservicebus.com/guestAuth/app/nuget/v1/FeedService.svc.
You can add this package source to your list of avaiable packages sources from within visual studio:
'Tools'->'Library Package Manager'->'Package Manager Settings', there under 'Package Manager' choose 'Package Sources'. Type any name you want and type the URL in the source text box, and click 'Add'.
The following shows how the Package Sources looks like after clicking the 'Add' button:

To install NServiceBus continuous integration builds (latest), in the Nuget console windows (from visual studio Tools->Library Package Manager->Package Manager Console) choose the builds.nservicebus.com package source, as follows:
Then to have the latest NServiceBus build, type the following at the Package Manager Console:
PM> Install-Package NServiceBus -IncludePrerelease
or, if you already installed NServiceBus core libraries
PM> Update-Package NServiceBus -IncludePrerelease
Note: NServiceBus continuous integration packages are marked as a prerelease so you need to install using the –IncludePrerelease switch.
Additional NServiceBus V3 NuGet Packages
There are additional NServiceBus NuGet packages, to make your integration with NServiceBus even easier. Each package will specific libraries and configure NServiceBus to utilize them.
| Package Name | Package Description |
|---|---|
| NServiceBus.NServiceBus.Host | The hosting template for the NServiceBus. It will install NServiceBus generic host. The NServiceBus host saves you time by configuring without any code changes all NServiceBus capabilities and technologies. |
| NServiceBus.Azure | Azure for the NServiceBus. |
| NServiceBus.CastleWindsor | This is the package for you if you are using CastleWindsor Container. |
| NServiceBus.Unity | This is the package for you if you are using Unity application block as you dependency injection. |
| NServiceBus.Autofac | This is the package for you if you are using Autofac IoC container. |
| NServiceBus.StructureMap | This is the package for you if you are using StructureMap dependency injection tool. |
| NServiceBus.Autofac2 | The newest Autofac Container for NServiceBus. |
| NServiceBus.StructureMap262 | The StructureMap (version 262) Container for the NServiceBus. |
| NServiceBus.Testing | Adds NServiceBus testing assembly to your project, allowing you to write unit tests using NServiceBus capabilities. |
| NServiceBus.Host32 | Hosting assembly for 32 bit machine only. You can read more about it here. |
| NServiceBus.Ninject | The Ninject dependency injection container for the NServiceBus. |
| NServiceBus.Spring | The Spring Container for the NServiceBus. |
| NServiceBus.NHibernate | Install this package to give you the entire configuration to use NServiceBus with NHibernate. |
