0

我对 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 的项目库。

任何帮助,将不胜感激。先感谢您。

4

1 回答 1

0

指定版本,如“Install-Package Quartz -Version 2.1.2”

于 2013-10-24T11:54:44.390 回答