gmanny / Pechkin

.NET Wrapper for WkHtmlToPdf static DLL. Allows you to utilize full power of the library.
400 stars 128 forks source link

.Net 2 #56

Open waterboy550 opened 10 years ago

waterboy550 commented 10 years ago

I'm trying to compile a C# program using Visual Express 2010. The project needs to run on a Windows 2000 server, so .net 2 needs to set as the project framework.

When I compile the code it says that Pechkin.dll or one of its dependencies requires a higher version of .net framework.

I thought it was .net 2 compatible?

tuespetre commented 10 years ago

My fork is 2.0 compatible.

Link: https://github.com/gmanny/Pechkin/pull/42

jcarrenog commented 10 years ago

tuespetre fork works perfectly, but lacks the SynchronizedPechkin, so you can't use it on a multithread environment.

SynchronizedPechkin uses some .Net 4.0 components, which are incompatible with 2.0. I managed to solve this, by copying the needed classes from the Mono project, and compiling everything with .Net 3.5

Hope this helps!

tuespetre commented 10 years ago

It lacks the SynchronizedPechkin class, but the factory manages a synchronized thread behind the scenes, so it is indeed multithreaded safe.

On Feb 21, 2014, at 10:26 AM, "zevane" notifications@github.com wrote:

tuespetre fork works perfectly, but lacks the SynchronizedPechkin, so you can't use it on a multithread environment.

SynchronizedPechkin uses some .Net 4.0 components, which are incompatible with 2.0. I managed to solve this, by copying the needed classes from the Mono project, and compiling everything with .Net 3.5

Hope this helps!

— Reply to this email directly or view it on GitHub.

jcarrenog commented 10 years ago

@tupestre Sorry, didn't read! I'll give it a try right now, thanks :-)