Reputation: 814
I am using this library https://github.com/rdvojmoc/DinkToPdf however, the library requires these two file in the bin libwkhtmltox.dll and libwkhtmltox.so So how do ensure that the files copied during publishing? Visual Studio 2017 community edition, the project ASP Core 2.0
Upvotes: 1
Views: 1728
Reputation: 3711
You can add those files to the root folder of your project and in their Properties set "Copy to Output Directory" to "Copy always". Your files will then be copied to the bin folder - but ...
... this is probably not sufficient because:
C:\Users\<yourUsername>\.nuget\packages\dinktopdf\1.0.8\lib\netstandard1.6
. If you copy the files there, they will be found.I'm handling it the following way for my project:
C:\Users\<myUsername>\.nuget\packages\dinktopdf\1.0.8\lib\netstandard1.6
This way DinkToPdf works on my development machine as well as in my azure web application.
Upvotes: 1