Install NuGet packages in Visual Studio Code

Install NuGet packages in Visual Studio Code

Install NuGet packages by using the NuGet Gallery extension.
IMPORTANT:
Rockwell Automation
is not responsible for any third-party software, including but not limited to its performance, security, updates, or compatibility with our products. Any use of third-party software is at your own risk, and we do not provide support, warranties, or guarantees for such software. Users should refer to the respective third-party providers for assistance and licensing terms.
Prerequisites
Set Visual Studio Code as the default external code editor. See Set the default code editor.
  1. To install NuGet packages in Visual Studio Code
  2. From the main toolbar, select
    Open .NET Solution
    .
    The default external code editor opens.
    TIP: Rockwell Automation recommends using
    Visual Studio®
    2022 or
    Visual Studio Code
    as the default code editor. Some development assistance features may not be available when using a different code editor.
  3. In Visual Studio Code, install the NuGet Gallery extension NuGet Gallery - Visual Studio Marketplace.
  4. In NuGet Gallery, install the necessary NuGet packages.
  5. Save the
    CSPROJ
    file.
  6. Compile the project.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.