PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

Issue with C# sample code
http://forum.pdfsharp.de/viewtopic.php?f=2&t=4577
Page 1 of 1

Author:  ulrichK [ Thu Apr 11, 2024 3:06 pm ]
Post subject:  Issue with C# sample code

Hi,

I|m trying out the sample code from [https://github.com/empira/PDFsharp/blob/master/src/samples/src/PDFsharp/src/HelloWorld/Program.cs][/https://github.com/empira/PDFsharp/blob/master/src/samples/src/PDFsharp/src/HelloWorld/Program.cs]

I have installed
  • PDFsharp
  • System.Drawing.Common
  • System.Text.Encoding.CodePages
from NuGet.

The code won't compile due to two errors:

CS0103 The Name 'PdfFileUtility' does not exist in the current context (twice: line 86 and 89)
CS0117 'Capabilities.Build' does not contain a definition for 'BuildTag' (line 86)

Can't find any solution to this issue. Do I have to install other packages or something? Where is the PdfFileUtility from?

Thanks in advance for your help.

Author:  TH-Soft [ Thu Apr 11, 2024 6:18 pm ]
Post subject:  Re: Issue with C# sample code

Use the latest NuGet packages 6.1.0 Preview 2.

Author:  () => true [ Fri Apr 12, 2024 11:15 am ]
Post subject:  Re: Issue with C# sample code

The samples repository is here:
https://github.com/empira/PDFsharp.Samples
The samples require the latest preview NuGet packages.


The source code repository is here:
https://github.com/empira/PDFsharp
You link to the Samples folder of this repository.
The samples compile when you open the solution PDFsharp.sln from the root folder of that repository.

Author:  ulrichK [ Fri Apr 12, 2024 11:48 am ]
Post subject:  Re: Issue with C# sample code

Thank you guys!

Activating preview packages in NuGet and installing PDFsharp 6.1.0 Preview 2 solved the issue.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/