Use third party .NET librariesΒΆ

Introduction

It is possible to extend the functions in C# programming using third party .NET libraries.

Important

only .NET libraries with .NET Standard 2.0 destination framework are supported.

Add a third party library to the Visual Studio project

  1. Copy the .NET assembly for the library in the ProjectFiles/NetSolution project sub-folder.

  2. Open the Visual Studio project of the Q Studio project.

  3. In Visual Studio, in the Explore solutions panel, right-click on Dependency and then on Update reference: the window for managing the .NET project references opens.

  4. Click on Browse and select the assembly copied in step 1, then click on OK.

Add a third party library to the Visual Studio Code project

  1. Copy the .NET assembly for the library in the ProjectFiles/NetSolution project sub-folder.

  2. Open the Visual Studio project of the Q Studio project.

  3. In Visual Studio Code, open the project file (extension .csproj).

  4. Inside <ItemGroup>, add a reference (<Reference>) to the assembly copied in step 1. The following example shows a reference to the MyLibrary.dll assembly.

    <Reference Include="MyLibrary">
        <HintPath>..\MyLibrary.dll</HintPath>
        <Private>False</Private>
    </Reference>
    
  5. Save the project file.