【问题标题】:Unable to resolve Newtonsoft.Json in dotnet core 2 project in rider IDE无法在 Rider IDE 的 dotnet core 2 项目中解析 Newtonsoft.Json
【发布时间】:2020-07-11 18:08:59
【问题描述】:

我在 Ubuntu 16.04 上使用 Rider IDE,并使用 Rider IDE 向导创建了一个简单的类库项目(使用 File | New | Class Library 调用) IDE 自动生成一个Class.cs 文件,我在其中添加了一个包含。该文件如下所示:

using System;
using Newtonsoft.Json;

namespace ClassLibrary
{
    public class Class1
    {
    }
}

但是,IDE 将该行标记为错误,指出它“无法解析符号 Newtonsoft”。

但是,Newget 窗口确实显示 Newtonsoft.Json 可用,如屏幕截图所示。

是否应该在另一个地方进行配置?

【问题讨论】:

标签: .net-core-2.0 rider


【解决方案1】:

您的解决方案中没有包,只有 .net 标准库。 Nuget 窗口建议您安装“Newtonsoft.Json”软件包,请参阅部分名称 - “可用软件包”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-20
    • 1970-01-01
    • 2019-05-09
    • 2017-10-26
    • 1970-01-01
    相关资源
    最近更新 更多