HakanL / WkHtmlToPdf-DotNet

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
GNU Lesser General Public License v3.0
372 stars 67 forks source link

Update nuget to work with AnyCPU .net platform builds #51

Closed horizondave closed 3 years ago

horizondave commented 3 years ago

I've tested these changes locally by deploying to an internal nuget feed and consuming the new nuget package in a .net472 64bit app running in asp.net and it worked.

With the original package it failed on the convert with "platform not supported" error.

HakanL commented 3 years ago

Looks good, thank you!

HakanL commented 3 years ago

@horizondave Thanks for your contribution! I had to add a line to the project file for it to build on Linux (using Github Actions), but it looks like it works now. Can you please test with the official Nuget version (v1.5.59, I didn't bump the minor version since the wkhtml code is the same).