Messaging that just works
This section describes the process for obtaining a copy of the RabbitMQ .Net/C# AMQP client library source code, as well as instructions for building the .Net/C# client libraries from source.
$ hg clone http://hg.rabbitmq.com/rabbitmq-dotnet-client
To build the .NET/C# client libraries on Windows, you will need
To build the source with Visual Studio you need to:
Local.props.example to Local.props and
edit the <PropTargetFramework> value to the
desired target framework version. If this is v3.0 or newer, the WCF
bindings will also be built.
RabbitMQDotNetClient.sln in Visual
Studio. That may fail if the version of Visual Studio used
is different from the one that created the solution file. In
most such cases this can be corrected by opening the
solution file in a text editor and adjusting the Format
Version number at the beginning.
DebugNoTest.
To build the source without Visual Studio you first need to make sure
you have the .NET's framework directory in your path, which is usually
DRIVE:\Windows\Microsoft.NET\Framework\v2.0.50727
for .NET 2.0 or DRIVE:\Windows\Microsoft.NET\Framework\v3.0
for .NET 3.0.
Local.props.example to Local.props and
edit the <PropTargetFramework> value to the
desired target framework version. If this is v3.0 or newer, the WCF
bindings will also be built.
> msbuild.exe RabbitMQDotNetClient.slnFor more information on msbuild.exe see the MSBuild command line reference.
The library can be built on Linux with Mono, but only with Mono version 2.6 and later. 2.4.x versions, as included with most current Linux distributions, are not sufficient. You can obtain the latest versions of Mono at mono-project.com
Once you have installed a suitable version of Mono, and obtained the RabbitMQ .Net/C# AMQP client library source code, to build the library you should:
Local.props.example to Local.props
and edit the <PropUsingMono> value to be
true.
$ xbuild RabbitMQDotNetClient.slnFor more information on xbuild see its man page.