[Windows][MQ 9.2.0 Jul 2020][Linux]

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.

About this task

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.

You 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.

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:
    • Using 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. You can redirect the output to a log file.

    • Using 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.