Installing the Metasys client library - Metasys - LIT-12013522 - Software Application - Basic Services client library for .NET (and COM) - Metasys API - 4.2

Metasys REST Client for .NET and COM Developer Guide

Brand
Metasys
Product name
Basic Services client library for .NET (and COM)
Metasys API
Document type
API Reference Guide
Document number
LIT-12013522
Version
4.2
Revision date
2021-04-07
Language
English (United States)

Install NuGet packages using Microsoft package consumption workflow. For more information, see https://docs.microsoft.com/en-us/nuget/consume-packages/overview-and-workflow

If you want to use the DLL in a .NET application, include the following .NET C# code in the target source files;
using JohnsonControls.Metasys.BasicServices;

To install the DLL, consume the package using one of the following options:

  • Consuming the package using the PackageReference method.
    • Add the following code to the project's .csproj file:
      <ItemGroup>
          <PackageReference Include="JohnsonControls.Metasys.BasicServices" Version="<target version>" />
      </ItemGroup>
      
  • Consuming the package using the command line interface
    1. Open a command line and navigate to your project's main directory.
    2. Execute the following command:
      nuget install JohnsonControls.Metasys.BasicServices -OutputDirectory packages
    3. Update all packages with command:
      nuget restore

    If you want an alternative to using the command line, use Microsoft Visual Studio. The following image shows a successful package install.

Figure 1. Package installation using Microsoft Visual Studio®