简体   繁体   中英

Why does Quartz.Net seem to require my project to target the full .NET Framework 4?

I've started using Quartz.Net in a class library project I have. It seems to need require my project to target the full .NET Framework 4, or else I get “type or namespace name could not be found” type errors.

The follow on issue is that in my .NET 4 WPF application (which uses this project class library) I get similar issues and have to set the client app target to the full .NET Framework 4 (from the .Net 4 Client Profile).

Is there a way when using Quartz.Net to still be able to have my client app target the .Net 4 Client Profile?

I would guess that Quartz.net references System.Web which means it must target the full framework. You can investigate this easily using Reflector (I would have a look myself but I'm not near a computer at the moment). I had a similar issue with log4net. Unfortunately I had to make a custom build of log4net so that I could remove the System.Web dependencies and so target the client profile for my WPF app.

If you want to target the client profile, then all assemblis you reference need to meet client profile requirements too.

Someone else might have a custom Quartz.net fork for the client profile, but if not you might have to tackle this yourself. it's open source.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM