Downloading IBM MQ classes for .NET Standard from the NuGet repository

The IBM MQ classes for .NET Standard are available for downloading from the NuGet repository, so that they can be easily consumed by .NET Developers.


NuGet is the package manager for Microsoft development platforms including .NET. The NuGet client tools provide the ability to produce and consume packages. A NuGet package is a single compressed file with the .nupkg extension that contains compiled code (DLLs), other files related to that code, and a descriptive manifest that includes information like the package's version number.

We can download the IBMMQDotnetClient NuGet package, which contains the amqmdnetstd.dll library, from the NuGet Gallery, which is is the central package repository used by all package authors and consumers.

There are three ways of downloading the IBMMQDotnetClient package:

  • By using Microsoft Visual Studio. NuGet is distributed as a Microsoft Visual Studio extension. From Microsoft Visual Studio 2012, NuGet is pre-installed by default.
  • From the command line using either the NuGet Package Manager or the .NET CLI.
  • By using a web browser.

As for the redistributable package, you enable trace by using the environment variable MQDOTNET_TRACE_ON. A value of -1 enables default level tracing. Any other integer value, greater than 0, enables detailed tracing. Setting this environment variable to any other value does not enable trace.


Procedure

  • To download the IBMMQDotnetClient package by using the Package Manager UI in Microsoft Visual Studio, complete the following steps:
    1. Right-click the .NET project and then click Manage Nuget Packages.
    2. Click the Browse tab and search for “IBMMQDotnetClient”.
    3. Select the package and click Install.

    During installation, the Package Manager provides progress information in the form of console statements.

  • To download the IBMMQDotnetClient package from the command line, choose one of the following options:

    • Use the NuGet Package Manager, enter the following command:
       Install-Package IBMMQDotnetClient -Version 9.1.4.0

      During installation, the Package Manager provides progress information in the form of console statements. We can redirect the output to a log file.

    • Use the .NET CLI, enter the following command:
      dotnet add package IBMMQDotnetClient --version 9.1.4

  • Using a web browser, download the IBMMQDotnetClient package from https://www.nuget.org/packages/IBMMQDotnetClient.

Parent topic: Installing IBM MQ classes for .NET Standard


Related tasks


Related information