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>
- Add the following code to the project's
- Consuming the package using the command line interface
- Open a command line and navigate to your project's main directory.
- Execute the following command:
nuget install JohnsonControls.Metasys.BasicServices -OutputDirectory packages
- 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®