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
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);
As there is a Breaking changes from v0.5:
Package renamed from Microsoft.AdaptiveCards to AdaptiveCards
It seems that you have installed Microsoft.AdaptiveCards
but AdaptiveCards
.
To install AdaptiveCards
, please mark Include prerelease
checkbox in NuGet package manager: