andyhutch77 / MvcRazorToPdf

Create pdf documents within an asp .net mvc project by generating your views as normal but returning a PdfActionResult. This converts regular produced razor/html to pdf documents in the browser using the iTextXmlWorker.
125 stars 105 forks source link

Wrong dependencies in nuget package #25

Closed panicoenlaxbox closed 9 years ago

panicoenlaxbox commented 9 years ago

Hi,

I have installed MvcRazorToPdf and I'm have a compiler error with the following description:

Assembly 'MvcRazorToPdf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'itextsharp, Version=5.5.3.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' which has a higher version than referenced assembly 'itextsharp, Version=5.5.0.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'...

I had to upgrade the iTextSharp and itextsharp.packages to the 5.5.3 version with the following commands:

Install-Package iTextSharp -version 5.5.3 Install-Package itextsharp.xmlworker -version 5.5.3

Now, it seems to compile.

Thank you for your excellent job! :)

andyhutch77 commented 9 years ago

Thanks Sergio. I will update that when I get a chance. Take care Andy From: Sergio León notifications@github.com To: andyhutch77/MvcRazorToPdf MvcRazorToPdf@noreply.github.com Sent: Monday, 26 January 2015, 9:33 Subject: [MvcRazorToPdf] Wrong dependencies in nuget package (#25)

Hi,I have installed MvcRazorToPdf and I'm have a compiler error with the following description:Assembly 'MvcRazorToPdf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'itextsharp, Version=5.5.3.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' which has a higher version than referenced assembly 'itextsharp, Version=5.5.0.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'...I had to upgrade the iTextSharp and itextsharp.packages to the 5.5.3 version with the following commands: Install-Package iTextSharp -version 5.5.3 Install-Package itextsharp.xmlworker -version 5.5.3Now, it seems to compile.Thank you for your excellent job! :)— Reply to this email directly or view it on GitHub.

nostradamnit commented 9 years ago

I just installed your package from nuget and I have this same error. Is there a way to update it locally? Thx!

[WORK AROUND] install the package via nuget, then (re)install itextsharp and itextsharp.xmlworker and everything works fine.