Skip to main content

Build RabbitMQ .NET Client from Source

Overview

This guides describes the process of building the .NET client library from source.

The repository is hosted on GitHub. Clone it with

git clone https://github.com/rabbitmq/rabbitmq-dotnet-client.git

Required Libraries and Tools

To build the .NET/C# client libraries on Windows, you will need

  • .NET Core or Microsoft .NET 4.6.1 or later
  • Microsoft Visual Studio Community Edition 2017 or later

Building from Source

On Windows with Visual Studio

To build the client with Visual Studio, first run

build.bat

in repository root. This will perform the required code generation as well as building a release version of the library.

Then

  • Open RabbitMQDotNetClient.sln in Visual Studio.
  • Build the solution.

On Windows without Visual Studio

To build the client without Visual Studio, run

build.bat

in repository root. This will perform the required code generation as well as building a release version of the library.

On Linux and MacOS

The library can be built on Linux and MacOS using .NET Core 2.

Run

build.sh

This will perform the required code generation as well as building a release version of the library.