本文介绍了'AdaptiveCard'不包含'FromJson'的定义-Microsoft Bot Framework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试创建一个自适应卡,从json解析它.如 https://docs.microsoft.com/zh-CN/adaptive-cards/create/libraries/net#example-parse-from-json ,我已经安装了AdaptiveCards软件包并尝试使用该函数,但是它抛出类似"AdaptiveCard"不包含"FromJson"的定义.

I have tried creating an adaptive card, parsing it from json. As mentioned in https://docs.microsoft.com/en-us/adaptive-cards/create/libraries/net#example-parse-from-json, I have installed AdaptiveCards package and tried using that function, but it throws a error like 'AdaptiveCard' does not contain a definition for 'FromJson'.

推荐答案

与v0.5相比有重大变化:

As there is a Breaking changes from v0.5:

似乎您已经安装了Microsoft.AdaptiveCards,但已经安装了AdaptiveCards.

It seems that you have installed Microsoft.AdaptiveCards but AdaptiveCards.

要安装AdaptiveCards,请在NuGet程序包管理器中选中Include prerelease复选框:

To install AdaptiveCards, please mark Include prerelease checkbox in NuGet package manager:

这篇关于'AdaptiveCard'不包含'FromJson'的定义-Microsoft Bot Framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 20:17