sungaila / PDFtoImage

A .NET library to render PDF files into images.
https://www.sungaila.de/PDFtoImage/
MIT License
176 stars 19 forks source link

runtimes/** dirs & files aren't copies during deploy/publish - .net 5 web app. #4

Closed michalblaha closed 3 years ago

michalblaha commented 3 years ago

publishing with dotnet publish with above parameters.

directory runtimes/ with .dll and . .dylib files is not copied to the destination.

Compilation in Visual Studio 2019 is ok, /runtimes/** files are copied.

sungaila commented 3 years ago

Hi @michalblaha,

thank you for finding this bug!

dotnet publish with portable as runtime will create the runtimes folder. Any other runtime (win-x64 in your case) will copy the pdfium.dll into the root directory, since there is no point to copy any other native library.

Unfortunately, PDFtoImage is hard coded to search for the runtimes folder. I will fix this for v1.1.3 and let you know.

sungaila commented 3 years ago

Hey @michalblaha, could you please verify that v1.1.3 fixed this issue?

michalblaha commented 3 years ago

Yes! no /runtimes directory created, but pdfium.dll is in the root and it's working. Thanks!