Hi Mia,
I am brand new to pdfsharp and I use VS2010. I have not built MigraDoc, but I have successfully built pdfsharp, so perhaps my comments will help.
Here is what I did to successfully get it running:
(Note: I am using PDFSharp version 1.31)
1. Opened the BuildAll-PdfSharp.sln file with VS2010.
2. Of course the VS2010 upgrade wizard started up. I let it do the conversion and got no errors.
3. But things did not build. I did what Thomas suggested, which was to examine the first errors in the VS2010 output window. I then googled that error message, and quickly found the fix. More on that below.
I also changed the .Net Framework to 4.0 with no problem.
Now as to the file I changed. I think that the only issue I had to fix was in the PDFsharp\code\PdfSharp\PdfSharp.Drawing\XFontFamily.cs file.
The compilation occurred on this line (line 266):
Code:
System.Drawing.FontFamily[] families = null;
I found the answer at this URL:
viewtopic.php?f=2&t=903&p=2332&hilit=GetFamilies#p233Specifically, in the post by user "MarcelW" which was posted at Thu Mar 31, 2011 4:53 pm (not sure of TZ; my TZ is EST)
So I changed that one line above to the following:
Code:
// VS2010 compilation warning.
// Fixed based on info on http://forum.pdfsharp.net/viewtopic.php?f=2&t=903&p=2332&hilit=GetFamilies#p2332
// BWW 11/14/2011
#pragma warning disable 618
families = System.Drawing.FontFamily.GetFamilies(graphics.gfx);
#pragma warning restore 618
Hope this helps!
Now, I'm off to try to find info on how the whole coordinate system thing works in PDFSharp!