我对Quartz .Net库有疑问。我已经对最好的C#作业调度程序进行了研究,发现Quartz是最好的选择。但是,我无法使其与Windows 8项目一起使用。我正在使用Visual Studio 2012.我从nuget获得的错误如下:
> PM> Install-Package Quartz
Attempting to resolve dependency 'Common.Logging (≥ 2.1.2)'.
Installing 'Common.Logging 2.1.2'.
Successfully installed 'Common.Logging 2.1.2'.
Installing 'Quartz 2.1.2'.
Successfully installed 'Quartz 2.1.2'.
Adding 'Common.Logging 2.1.2' to Wonky Project.
Uninstalling 'Common.Logging 2.1.2'.
Successfully uninstalled 'Common.Logging 2.1.2'.
Install failed. Rolling back...
Install-Package : Could not install package 'Common.Logging 2.1.2'. You are trying to install this package into a project that targets '.NETCore,Version=v4.5', but the package does not contain any assembly
references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Quartz
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
我必须补充说我已经尝试加载手动丢失的库但仍然没有运气。我也尝试将石英添加到库项目中并且实际上有效,但后来我无法在Windows 8 App项目中引用项目库。然后Visual Studio说:“无法添加对项目调度程序的引用”。 Scheduler是安装了Quartz的项目库。
任何帮助将不胜感激。先感谢您。
答案 0 :(得分:0)
指定类似“Install-Package Quartz -Version 2.1.2”
的版本