c# - Visual Studio 代码调试器出错命名空间“System.Text”中不存在类型或命名空间名称“Json”
问题描述
.NET Core 3.1 有一个新的 apiSystem.Text.Json
来将对象序列化为 json
我打电话System.Text.Json.JsonSerializer.Serialize(routeValues)
,但有错误
error CS0234: The type or namespace name 'Json' does not exist in the namespace 'System.Text' (are you missing an assembly reference?)
有谁知道这是什么?
我的 .NET SDK 版本是3.1.302
运行时环境:操作系统名称:Mac OS X 操作系统版本:10.15 操作系统平台:Darwin RID:osx.10.15-x64
解决方案
推荐阅读
- java - Sublime text 问题(javac: invalid flag:)
- terraform - terraform 模块如何根据调用者传递的参数(变量)返回不同的值
- html5-video -
- android - 当应用程序被杀死时,FCM 不工作
- xaml - 有没有办法动态获取 ListView 项的 RowHeight 以用于设置 Grid 列的宽度?
- azure - Azure 服务总线主题、订阅规则已删除
- javascript - 如何在 Angular 中动态生成不同的变量?
- javascript - 正则表达式从html中提取属性作为文本
- image - Flutter 应用中的 webP 动画图像会在 iOS 上显示吗?
- python - 散景工具提示获得 Y 值顶部