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
Copy the .NET assembly for the library in the ProjectFiles/NetSolution project sub-folder.
Open the Visual Studio project of the Q Studio project.
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.
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
Copy the .NET assembly for the library in the ProjectFiles/NetSolution project sub-folder.
Open the Visual Studio project of the Q Studio project.
In Visual Studio Code, open the project file (extension .csproj).
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>
Save the project file.