PDFiumSharp icon indicating copy to clipboard operation
PDFiumSharp copied to clipboard

Having trouble building the solution

Open daghendrik opened this issue 6 years ago • 3 comments

I'm getting 'PDFium' does not contain a definition for 'FPDFAction_GetDest' , The type or namespace name 'FPDF_ACTION' could not be found (are you missing a using directive or an assembly reference?) and similar when trying to build in Visual Studio 2017.

Also getting a NU1108 Cycle detected. PDFiumSharp -> PDFiumSharp (>= 0.1.1-beta).

daghendrik avatar Aug 21 '19 13:08 daghendrik

You have to run the template custom tool on the 2 .tt files (right clic on it then Run custom tool) : FPDF_Typedefs.tt in Types folder and PDFium.tt at the root

Whiletru3 avatar Aug 21 '19 15:08 Whiletru3

Thank you!

daghendrik avatar Aug 22 '19 07:08 daghendrik

if you look in (the history of) my fork, i have a changeset to transform the tt file during the build : https://github.com/Whiletru3/PDFiumSharp/commit/404e9bc73b04977f22d4c11cfc1adac8f487f3e6 but it is not anymore in the head, it was in PDFiumSharpLegacy (using the .NET Framework) but i removed it in the last changeset

Whiletru3 avatar Aug 22 '19 08:08 Whiletru3