PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 11:09 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jan 23, 2013 1:32 pm 
Offline

Joined: Wed Jan 23, 2013 11:26 am
Posts: 2
Hi there,

First of all i'd like to express my gratitude towards this great library. PdfSharp (and MigraDoc) really are the solutions i need to implement the business-requirements at the company i work for. (I.e. creating reports).
But all is not (yet) well.
When running an MSBuild script via TFS, an error occurs in the Directives.Cs file in the PdfSharp-WPF project. (I include the sourcode of the projects i use for 'simple' adjustments to the code).
The error i receive says: "#error: 'Either 'GDI', 'WPF' or 'SILVERLIGHT' must be defined' ".

What are my options to solve this error? What is causing it?

Thanks in Advance
Tom


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 23, 2013 2:57 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
The solution is in the message: 'Either 'GDI', 'WPF' or 'SILVERLIGHT' must be defined' ".

Why don't you just use the projects that come with PDFsharp? All the defines are there, you can easily change the code if you want to - or replace the folder when a new PDFsharp version is released.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 23, 2013 4:12 pm 
Offline

Joined: Wed Jan 23, 2013 11:26 am
Posts: 2
Apparently, the problem was a lacking flag in the script file (the 'Platform=Any CPU' flag to be specific). Adding it to the script solved the problem. (So this post might have been a bit premature, since there was no problem with the PdfSharp code. :oops: )
Thanks anyway.

But to answer your question: I needed more detailed security error reporting than those that were 'natively' available. So i included the '-WPF' tagged projects into our solution.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 362 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group