Installing a NuGet package
- 1. In the TwinCAT HMI project, right-click on the References node, then click on Manage NuGet Packages…:
![Installing a NuGet package 1:](Images/png/8785559435__Web.png)
- 2. In the NuGet Package Manager you will then find an overview of the currently installed packages:
![Installing a NuGet package 2:](Images/png/8785714699__Web.png)
- 3. Switch to the Browse tab at the top:
![Installing a NuGet package 3:](Images/png/8785716363__Web.png)
- 4. Make sure that the correct repository is selected in the upper right corner under Package source:
![Installing a NuGet package 4:](Images/png/8785718027__Web.png)
- Repository explanations:
- nuget.org: public repository that requires an internet connection.
Search here for Beckhoff or TwinCAT HMI. - TwinCAT HMI Official: offline TwinCAT HMI repository, for which no internet connection is required. The packages are stored on your system when the TE2000 setup is installed.
- TwinCAT HMI Customer: offline repository for user-created packages.
- 5. Select the package you want to install. Further information about the package is then displayed on the right.
![Installing a NuGet package 5:](Images/png/8785719691__Web.png)
- 6. Select the required version on the right and click Install:
![Installing a NuGet package 6:](Images/png/8785721355__Web.png)
- The package will now be installed. Detailed information about the installation progress can be found in Package Manager Console:
![Installing a NuGet package 7:](Images/png/8785723019__Web.png)
- After successful installation the package can be found under References node, and the corresponding functions can be used:
![Installing a NuGet package 8:](Images/png/8785724683__Web.png)