gitlabEdit

disc-driveInstallation

Installing our library into your project

There are two ways to install our library into your project:

  • Using Visual Studio's NuGet package manager

  • Manual installation

You can choose a way to install a package in a way you prefer.

Visual Studio's NuGet package manager

If you're using Visual Studio to build your project, it provides you an easy way to install NuGet packages, such as our libraries, into your project.

1

Open your project

Open Visual Studio to a project that you want to install our libraries to.

2

Open the NuGet package manager

Right click on either the project or the Dependencies entry beneath the project in the Solution Explorer pane and select Manage NuGet packages...

3

Search for a library

Click on Browse and click on the Search text box. Then, write the desired library you'd like to install, such as Terminaux.

4

Install a library

Click on any of the libraries that show up in the search results, and click on Install.

5

Accept the license

If any package asks for your acceptance of the license, read the license contained by clicking on their license names, then click on I Accept.

6

Verify the installation

The package is installed! Verify by expanding the Dependencies entry beneath the project and expanding the Packages entry.

Manual installation

If you'd like to manually install a NuGet package to a project with your favorite editor or if you're unable to use Visual Studio for some reason, you can use this installation method. However, this method comes in two ways:

  • Visual Studio

  • Text editor

Visual Studio

If you are using Visual Studio, follow these steps:

1

Open your project

Open Visual Studio to a project that you want to install our libraries to.

2

Open the project file

Double click on the project as shown in the Solution Explorer pane

3

Add a library reference

Place this snippet at the end of the project file just before the </Project> designator (replace Terminaux with any other library and 8.0.14 with the desired version of the library)

<ItemGroup>
  <PackageReference Include="Terminaux" Version="8.0.14" />
</ItemGroup>
4

Save project and restore packages

Save the project file. It should automatically install the required packages. If, however, the package restoration didn't automatically start, right-click on the solution and select Restore NuGet Packages.

Text editor

If you are using your favorite text editor, such as Visual Studio Code or Sublime Text, follow these steps:

1

Open your project folder

Open the file explorer and navigate to the target project directory that contains the project file (not the solution .sln or .slnx file)

2

Open your text editor

Right-click on the project file -> Open With -> your favorite text editor

3

Add a library reference

Place this snippet at the end of the project file just before the </Project> designator (replace Terminaux with any other library and 8.0.14 with the desired version of the library)

4

Save project and restore packages

Save the project file. Then, open the terminal emulator in your preferred way and execute dotnet restore.

Last updated