如何将NuGet包lucene-net从3.0.3版升级到4.8.0版

时间:2021-08-27 13:06:46

I am using lucene-net version 3.0.3, and I want binary filed store. Binary filed requires lucene-net version 4, but I cannot install this version.

我正在使用lucene-net 3.0.3版本,我想要二进制文件存储。二进制文件需要lucene-net版本4,但我无法安装此版本。

This is what I have tried and the error I received:

这是我尝试过的和我收到的错误:

PM> Install-Package Lucene.Net -Version 4.8.0.648-beta

Install-Package:
Some NuGet packages are missing from the solution. The packages need
to be restored in order to build the dependency graph. Restore the
packages before performing any operations.
At line:1 char:1
+ Install-Package Lucene.Net -Version 4.8.0.648-beta
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetMissingPackages,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

1 个解决方案

#1


2  

As said in this blogpost of Itamar Syn-Hershko, Lucene.NET version 4.8 is not yet available with NuGet.

正如在Itamar Syn-Hershko的博文中所述,Nuceet尚未提供Lucene.NET版本4.8。

But as described, you can get it through the private feed of MyGet though. To do this, first add a new package source in the NuGet Package Manager settings, with Source: https://www.myget.org/F/lucene-net/.

但如上所述,您可以通过MyGet的私人提要获取它。为此,首先在NuGet Package Manager设置中添加一个新的包源,源代码为:https://www.myget.org/F/lucene-net/。

After you've done this, you should find the new version with the NuGet Package Manager (don't forget to set the correct Package source).

完成此操作后,您应该使用NuGet包管理器找到新版本(不要忘记设置正确的包源)。

#1


2  

As said in this blogpost of Itamar Syn-Hershko, Lucene.NET version 4.8 is not yet available with NuGet.

正如在Itamar Syn-Hershko的博文中所述,Nuceet尚未提供Lucene.NET版本4.8。

But as described, you can get it through the private feed of MyGet though. To do this, first add a new package source in the NuGet Package Manager settings, with Source: https://www.myget.org/F/lucene-net/.

但如上所述,您可以通过MyGet的私人提要获取它。为此,首先在NuGet Package Manager设置中添加一个新的包源,源代码为:https://www.myget.org/F/lucene-net/。

After you've done this, you should find the new version with the NuGet Package Manager (don't forget to set the correct Package source).

完成此操作后,您应该使用NuGet包管理器找到新版本(不要忘记设置正确的包源)。