'AdaptiveCard' does not contain a definition for 'FromJson'--Microsoft Bot Framework

后端 未结 2 1290
小鲜肉
小鲜肉 2021-01-24 17:19

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 hav

2条回答
  •  半阙折子戏
    2021-01-24 17:44

    Apparently the documentation is outdated. The class is named AdaptiveCard now, without the last 's'.

    So instead of:

    var parseResult = AdaptiveCards.FromJson(card);
    

    Use:

    var parseResult = AdaptiveCard.FromJson(card);
    

提交回复
热议问题