How to Apply Bold Reports® Custom NuGet Packages

To apply Bold Reports® custom (patched) NuGet packages in your development environment, either install them from a local package source in the Visual Studio package manager or replace the assemblies in the NuGet cache manually. Both options are described in the following sections.

How do I apply custom NuGet packages using Visual Studio?

To apply Bold Reports® custom NuGet packages in Visual Studio, use the Visual Studio package manager to restore the custom packages from the folder that contains them. Follow these steps.

  1. First, close your project in Visual Studio.

  2. Delete the bin and obj folders from the project location.

  3. Open the following location with help of Run.%USERPROFILE%\.nuget\packages\. Remove the boldreports.net.core folder.

  4. Download the patched NuGet packages.

  5. Unblock the downloaded zip file and unzip it.

unblock the zip file

  1. Open the Visual Studio NuGet package manager.

  2. Select the Settings icon in the Package Manager UI, outlined in the following image:

Package Manager UI

  1. Add a source, select +, edit the name, enter the custom package path in the Source control, and select Update. The source now appears in the selector drop-down.

Add custom package

  1. Choose the newly added source in the package source drop-down.

Install custom Nuget Packages

  1. Install the Custom NuGet Packages.

How do I replace the assemblies manually?

To replace the Bold Reports® assemblies manually, extract the patched NuGet package and copy its assemblies into the boldreports.net.core folder of your NuGet cache. Follow these steps.

  1. First, close your project in Visual Studio.

  2. Delete the bin and obj folders from the project location.

  3. Download the patched NuGet packages.

  4. Unblock the downloaded zip file and unzip it.

unblock the zip file

  1. Extract NuGet package using the 7-Zip extractor.

 Extract NuGet package using 7-Zip

  1. If you do not have 7-Zip, change the nupkg file extension to Zip and extract the file with a zip extractor.

nupkg to zip conversion

  1. Copy all folders from lib, or only the folder for the framework you use.

  2. Open the following location with help of Run. %USERPROFILE%\.nuget\packages\boldreports.net.core\15.1.10\lib. Paste the copied files.

  3. Open and compile the project. The project uses the patched assembly from the NuGet cache on your system.