Product Ideas

13 Vote

Suggestion to improve ImageGear.NET Office NuGet package

Summary:

As a customer I would like to use ImageGear.NET by installing the SDK through NuGet. When I install the Office packagem the OfficeCore components are not properly installed by the package. This is a suggestion for how to include the OfficeCore components in the NuGet package so that they are installed correctly along with the package.

Here are included two ZIPs to demonstrate the procedure. The first is the project ImageGear23CreateOfficeFormatIssue.1.1.1 which will run and exit without error if OfficeCore is installed correctly, the second is Accusoft.ImageGear.Office which contains all of the files that are installed in the package directory of a project when using the modified package.

ImageGear23CreateOfficeFormatIssue.1.1.1:
This is a short sample that will fail if OfficeCore is not installed correctly through NuGet. The customer's modified package is inside the NuGet directory, and the project is configured to use that directory as a local source for packages. The modified package is currently installed.

Accusoft.ImageGear.Office:
This contains all of the files that are in packages/Accusoft.ImageGear.Office.23.3 when the modified package is installed. The build directory contains the OfficeCore components that are bundled when using the Deployment Packaging Wizard to get the dependencies for the ImageGear.Formats.Office component, along with a .targets file.

ImageGear23CreateOfficeFormatIssue.1.1.1:
This is a short sample that will fail if OfficeCore is not installed correctly through NuGet. The customer's modified package is inside the NuGet directory, and the project is configured to use that directory as a local source for packages. The modified package is currently installed.

Accusoft.ImageGear.Office:
This contains all of the files that are in packages/Accusoft.ImageGear.Office.23.3 when the modified package is installed. The build directory contains the OfficeCore components that are bundled when using the Deployment Packaging Wizard to get the dependencies for the ImageGear.Formats.Office component, along with a .targets file.

I've put the archives in a folder on our Google Drive.

 

Steps to Reproduce:

  1. Open the included project ImageGear23CreateOfficeFormatIssue.1.1.1.
  2. You can run the project and see that it runs without errors.
  3. Go to the NuGet package manager and isntall the ImageGear Office 23.3 package from nuget.org.
  4. Run the project again and see that it crashes where it tries to create the PowerPoint format.
  5. Modify the NuGet Package:
    1. On a machine with ImageGear.NET v23.3.3 isntalled, run the DPW.
    2. Select the ImageGear.Formats.Office component for packaging and finish.
    3. Download a copy of the current ImageGear Office 23.3 NuGet package.
    4. Unpack the NuGet package (it is just a .ZIP).
    5. Create a build folder inside the unpacked package.
    6. Copy the OfficeCore folder that was created by the DPW into the build directory.
    7. Copy the provided .targets file into the build directory.
    8. Compress the new package contents (create a .ZIP and rename it to .nupkg).
    9. You can use this package in the project by placing it in the NuGet folder and installing it from the local source.
  6. Install your newly created package.
  7. Run the project again, and see that that the project will run without errors again.
  • Guest
  • Nov 16 2017
  • Attach files
  • +8