如何安装SolrNet.NHibernate?

发布于 2024-12-07 07:00:15 字数 567 浏览 1 评论 0原文

我在新的控制台应用程序上尝试了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浅笑轻吟梦一曲 2024-12-14 07:00:15

“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.

无边思念无边月 2024-12-14 07:00:15

在安装 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文