如何安装SolrNet.NHibernate?
我在新的控制台应用程序上尝试了 Install-Package Solrnet.NHibernate
但失败并出现以下错误:
Attempting to resolve dependency 'NHibernate.Core (≥ 2.1.2.4000)'.
Install-Package : Unable to resolve dependency 'NHibernate.Core (≥ 2.1.2.4000)'.
At line:1 char:16
+ install-package <<<< solrnet.nhibernate
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Is this bad, and how do I fix this?
I tried Install-Package Solrnet.NHibernate
on a new console application but it failed with this error:
Attempting to resolve dependency 'NHibernate.Core (≥ 2.1.2.4000)'.
Install-Package : Unable to resolve dependency 'NHibernate.Core (≥ 2.1.2.4000)'.
At line:1 char:16
+ install-package <<<< solrnet.nhibernate
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Is this broken, and how do I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“NHibernate.Core”包不久前重命名为“NHibernate”。哎呀,我什至在相关讨论中支持这个决定。但我忘记更新 SolrNet.NHibernate 包。我想我以为 NuGet 团队会批量转换所有现有的包,但这从未发生过。
不管怎样,我刚刚修复了这个包并将其推送到 NuGet feed,所以现在一切都应该可以工作了。
The "NHibernate.Core" package was renamed to "NHibernate" a while ago. Heck, I even supported that decision in a related discussion. Yet I forgot to update the SolrNet.NHibernate package. I guess I thought the NuGet team would batch transform all existing packages, but that never happened.
Anyway I just fixed the package and pushed it to the NuGet feed, so it all should work now.
在安装 SolrNet.NHibernate 包之前,我会尝试通过 NuGet 安装 NHibernate 包,因为 Solrnet.NHibernate 包在将 NHibernate.Core 包安装为依赖项时遇到问题,并且我没有看到中列出的 NHibernate.Core 包努格特。这可能有效,也可能无效,但至少值得一试。
如果这不起作用。我建议从 SolrNet Google Code 网站获取最新的 SolrNet 二进制文件,然后按照NHibernate 集成指南。
I would try to install the NHibernate package via NuGet before installing the SolrNet.NHibernate package as it appears that the Solrnet.NHibernate package is having trouble installing the NHibernate.Core package as a dependency and I do not see an NHibernate.Core package listed in NuGet. This may or may not work, but is worth a shot at least.
If this does not work. I would recommend getting the latest SolrNet binaries from the SolrNet Google Code site and then following the NHibernate Integration guidance.