Install NuGet packages in Visual Studio
Install NuGet packages by using NuGet Packages Manager.
Prerequisites
Set Visual Studio as the default external code editor. See Set the default code editor.
To install NuGet packages in Visual Studio
-
From the main toolbar, select
Open .NET Solution.
The default external code editor opens.Tip: Rockwell Automation recommends using Microsoft Visual Studio 2022 or Microsoft Visual Studio Code as the default code editor. Some development assistance features may not be available when using a different code editor. - Install the necessary NuGet packages. See Install and use a NuGet package in Visual Studio | Microsoft Docs.
- Select the project to open the CSPROJ file.
- Save the CSPROJ file.
- Compile the project.