PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Oct 23, 2019 12:36 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: Mon Jan 16, 2017 3:43 pm 
Offline

Joined: Mon Jan 16, 2017 3:26 pm
Posts: 2
Hello guys, I can't compile my project in mvc4 with visual studio 2010, using .net framework 4.0, with pdfsharp, because when I downloaded it, from the nuget package, in the folder downloaded (pdfsharp/lib/) there is a folder net20 with its assembly, but this is for .net framework 2.0, how can I get one for 4.0?, if I add that assembly as a reference in my project, I get this error (It is in spanish, sorry :) )

No se puede cargar el archivo o ensamblado 'PdfSharp, Version=1.50.4000.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb' ni una de sus dependencias. La definici├│n del manifiesto del ensamblado no coincide con la referencia al ensamblado. (Excepci├│n de HRESULT: 0x80131040)

Thanks for your help.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 16, 2017 4:58 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2980
Location: Cologne, Germany
Hi!

You should let the NuGet Package Manager add or remove references. Maybe the problem is related to referencing files from the folders directly.

Maybe Clean and Rebuild will do the trick.

See also:
http://stackoverflow.com/q/93879/162529

If the mismatch of the .NET versions is the problem: Download the source code and set the projects to .NET 4. Recompile and reference the source projects or the DLLs you created.
Source code:
http://pdfsharp.codeplex.com/releases/view/618773

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 17, 2017 4:18 pm 
Offline

Joined: Mon Jan 16, 2017 3:26 pm
Posts: 2
Hello Thomas Hoevel , thanks a lot, It worked, I downloaded the source code and I compiled again, but in this case as a target the .net framework 4.0. Then with those new assemblies, I added to my own project.
:D :D :D


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: No registered users and 365 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