zoukankan      html  css  js  c++  java
  • 'Newtonsoft.Json' already has a dependency defined for 'NETStandard.Library'

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

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

     

     

  • 相关阅读:
    冒泡排序-用函数写
    c#语言基础
    c#小知识点
    令人头疼的冒泡排序
    字符串 与函数
    数组 冒泡排序 打印菱形 随机生成不同的数
    if语句练习
    运算符练习
    类型转换
    C#初学
  • 原文地址:https://www.cnblogs.com/time-is-life/p/7380805.html
Copyright © 2011-2022 走看看