安装NEST的时候报了如下的错误:

PM> Install-Package NEST

Attempting to resolve dependency 'Elasticsearch.Net (≥ 5.5.0 && < 6.0.0)'.

Attempting to resolve dependency 'Newtonsoft.Json (≥ 10.0.0 && < 11.0.0)'.

Install-Package : 'Newtonsoft.Json' already has a dependency defined for 'NETStandard.Library'.At line:1 char:1

+ Install-Package NEST

+ ~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException

+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

 

怎么回事那?

【解决方法】

升级Nuget

'Newtonsoft.Json' already has a dependency defined for 'NETStandard.Library'

升级完成后,需要重新启动visual studio, 庵后再次安装就可以了。

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2021-05-15
  • 2021-04-29
猜你喜欢
  • 2022-02-19
  • 2021-09-11
  • 2021-08-30
  • 2021-09-30
  • 2021-06-24
  • 2021-09-29
相关资源
相似解决方案