Click or drag to resize

NuGet Package Installation

NuGet can be used to automatically add files and references to your Visual Studio projects. You can use the Pdfium.Net SDK NuGet packages without installing the msi installation package to development with the Pdfium.Net SDK.

Tip Tip

NuPack is focused on installing libraries and tools into a Visual Studio solution. In explicitly does not install anything outside of that folder such as user controls into toolbox. So you must do it self.

The notice above is not related to the latest version of Visual Studio.

Installing NuGet Packages

Using NuGet Package Manager

The NuGet Package Manager can be used to search and install NuGet packages in the Visual Studio solution or project.

  1. Right-click the project or solution in the Solution Explorer tab, and choose Manage NuGet Packages…

    Open Package Manager

    Alternatively, click Tools menu, NuGet Package Manager, Manage NuGet Packages for Solution…

  2. Select the NuGet.org from the Package source drop-down.

    Package Manager For Solution
  3. All the Patagames NuGet packages are listed and available. Search and install the required packages in your application, by clicking the Install button.

Using Package Manager Console

To reference the Pdfium.Net SDK using the Package Manager Console as NuGet packages, follow the below steps:

  1. On the Tools menu, select NuGet Package Manager and then Package Manager Console.

  2. Run the following NuGet installation commands.

    Package Manager Console
    #install specified package in default project
    Install-Package pdfium.net.sdk
    
    #install specified package in specified project
    Install-Package pdfium.net.sdk - ProjectName <Project Name>

Managing NuGet package using NuGet CLI

The NuGet Command Line Interface (CLI), nuget.exe, provides the full extent of NuGet functionality to install, create, publish, and manage packages without making any change to the project files.

  1. Download the latest NuGet CLI here.

    Note Note
    To update the existing nuget.exe to latest version use the following command.
    Command Window
    nuget update -self
  2. Open the downloaded executable location in the command window, and run the following commands to download and install the required NuGet packages to a project specified in the package.config.

    Command Window
    #install specified package in default project from specified Package Source 
    nuget.exe install "pdfium.net.sdk"
    
    #install specified package in default project from specified Package Source 
    nuget.exe install "C:\Users\YourApplication\package.config"
Upgrading NuGet packages

Using NuGet Package Manager

NuGet packages can be updated to their specific version or latest version available in the Visual Studio solution or project.

  1. Right-click the project or solution in the Solution Explorer tab, and choose Manage NuGet Packages…

    Alternatively, click Tools menu, NuGet Package Manager, Manage NuGet Packages for Solution…

  2. Select the Updates tab to see the packages available for update. Select the required packages and the specific version from the dropdown, and click the Update button.

Using Package Manager Console

To update the installed Pdfium.Net SDK NuGet package using the Package Manager Console, follow the below steps.

  1. On the Tools menu, select NuGet Package Manager and then Package Manager Console.

  2. Run the following NuGet installation commands.

    Package Manager Console
    #Update specific NuGet package in default project
    Update-Package pdfium.net.sdk
    
    #Update specified package in specified project 
    Update-Package pdfium.net.sdk - ProjectName <Project Name>

Using NuGet CLI

Using the NuGet CLI, all the NuGet packages in the project can be updated to the available latest version.

  1. Download the latest NuGet CLI.

  2. Open the downloaded executable location in the command window and run the following "update commands" to update the Pdfium.Net SDK NuGet package:

    Command Window
    #update all NuGet packages from config file
    nuget update "C:\Users\YourApplication\package.config"
    
    #update all NuGet packages
    nuget update
See Also