【问题标题】:Why can i not use JSInterop in blazor?为什么我不能在 blazor 中使用 JSInterop?
【发布时间】:2019-11-11 08:26:07
【问题描述】:

我正在评估 .NET Core 3.0 中的 Blazor(服务器端应用程序),尝试添加 JS 互操作时出现下一个错误:

“命名空间‘Microsoft.JSInterop’中不存在类型或命名空间‘Json’(您是否缺少程序集引用?),截图如下:

enter image description here

有什么线索吗?

谢谢,

伊曼纽尔·纽腾斯

【问题讨论】:

  • 在 SO 上,将代码和错误消息添加为 文本,而不是图片。

标签: blazor


【解决方案1】:

Simple Json 序列化程序已替换为 System.Text.Json.Serialization.JsonSerializer Breaking changes to Microsoft.JSInterop

【讨论】:

    猜你喜欢
    • 2021-08-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-04
    • 1970-01-01
    • 2020-03-31
    • 2019-06-28
    • 2020-11-13
    相关资源
    最近更新 更多