ActiveReports 14 .NET Edition
ActiveReports 14 User Guide / Welcome to ActiveReports 14 / Manage ActiveReports Dependencies
In This Topic
    Manage ActiveReports Dependencies
    In This Topic

    The ActiveReports dependencies in Visual Studio projects can be added, updated, or removed using NuGet package manager. How the dependencies are managed depends on the location of package - at a local source or public source. The ActiveReports packages are available in the local directory on installing ActiveReports using the installer. The packages are also available publically on the NuGet website. For the list of packages, see Available Packages.

    The following sections elaborate adding the ActiveReports assemblies in your project by either installing NuGet packages from local source or directly from the NuGet website.

    Installing Packages from Local Source

    You must first run the installer to obtain the NuGet packages locally - C:\Program Files (x86)\GrapeCity\ActiveReports 14\NuGet. See Install ActiveReports for the steps on installation using MSI file. Then, create the NuGet package source to add the NuGet feed URL into your NuGet settings in Visual Studio, as follows:

    1. Configure local NuGet package source
    1. Open NuGet.Config file placed here:
      C:\Users\[UserName]\AppData\Roaming\NuGet.
    2. Modify the content of NuGet.Config as follows. This adds a key that directs to the path where NuGet packages are available locally.
      NuGet.config
      Copy Code
      <?xml version="1.0" encoding="utf-8"?>
      <configuration>
        <packageSources>
          <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
          <add key="ActiveReports" value="C:\Program Files (x86)\GrapeCity\ActiveReports 14\NuGet" />
        </packageSources>
      </configuration>
      
    2. Install Packages
    1. Open Visual Studio.
    2. Create any application (any target that supports .NET Standard 2.0).
    3. Right-click the project in Solution Explorer and choose Manage NuGet Packages.
    4. In the Package source on top right, select ActiveReports (key added in NuGet.config).
    5. Click Browse tab on top left and search for 'GrapeCity.ActiveReports'.
    6. On the left panel, select GrapeCity.ActiveReports.
      Nuget Package Manager dialog

      Nuget Package Manager dialog

    7. On the right panel, click Install.
    8. In the License Acceptance dialog, select I Accept to proceed the installation.

     

    Installing Packages from NuGet

    GrapeCity ActiveReports 14 references are available through NuGet and can be obtained directly from website - https://www.nuget.org/packages?q=GrapeCity.ActiveReports. When you add reference to GrapeCity.ActiveReports package, a set of core engine assemblies are added to the application. Use following steps to find and install the NuGet packages in your application:

    1. Open Visual Studio.
    2. Create any application (any target that supports .NET Standard 2.0).
    3. Right-click the project in Solution Explorer and choose Manage NuGet Packages.
    4. In the Package source on top right, select nuget.org.
    5. Click Browse tab on top left and search for 'GrapeCity.ActiveReports'.
    6. On the left panel, select GrapeCity.ActiveReports.
      Nuget Package Manager dialog

      Nuget Package Manager dialog

    7. On the right panel, click Install.
    8. In the License Acceptance dialog, select I Accept to proceed the installation.

    For more information on NuGet configurations, please see Common NuGet configurations and NuGet Configuration Settings articles by Microsoft.

    Note: The assemblies are available in the packages at the following location:

    • if installer is used: C:\Program Files (x86)\GrapeCity\ActiveReports 14\NuGet\{Package name}\lib\net462\{Assembly}
    • if a package is installed in an application: [App name]\packages\{Package name}\lib\net462\{Assembly}

     

    See Also