V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zxCoder
V2EX  ›  问与答

dotnet5 nuget 找不到包

  •  
  •   zxCoder · 2020 年 12 月 28 日 · 585 次点击
    这是一个创建于 1925 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在另一个系统还好好的,同一个项目,换了个电脑发现出问题了

    image.png image.png

    命令行dotnet install也显示

    error: NU1100: 无法解析 net5.0 的“Newtonsoft.Json (>= 12.0.3)”。 error: 包“Newtonsoft.Json”与项目“C:\Users\zxc\RiderProjects\MongoDB-PBAC\MongoDB-PBAC-Server\MongoDB-PBAC-Server.csproj”中的“all”框架不兼容。

    第 1 条附言  ·  2020 年 12 月 28 日
    ```
    PS C:\Users\zxc\RiderProjects> dotnet add package Newtonsoft.Json
    正在确定要还原的项目…
    Writing C:\Users\zxc\AppData\Local\Temp\tmp5FFE.tmp
    info : 正在将包“Newtonsoft.Json”的 PackageReference 添加到项目“C:\Users\zxc\RiderProjects\RiderProjects.csproj”。
    error: 没有可用于包“Newtonsoft.Json”的版本。
    ```
    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   3443 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 11:06 · PVG 19:06 · LAX 04:06 · JFK 07:06
    ♥ Do have faith in what you're doing.