We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPF
2.8.0
Any
Calling adaptiveCardRenderer.RenderCard will throw an exception in dotnet 6:
adaptiveCardRenderer.RenderCard
System.IO.FileNotFoundException:“Could not load file or assembly 'AdaptiveCards.Rendering.Wpf, Culture=neutral, PublicKeyToken=null"
Why? Because AssemblyName of the dotnet 6 version is AdaptiveCards.Rendering.Wpf.Net6, see
AdaptiveCards.Rendering.Wpf.Net6
https://github.com/microsoft/AdaptiveCards/blob/1243a36a19cb014a8fd638342d0d89657dc33f55/source/dotnet/Library/AdaptiveCards.Rendering.Wpf.Net6/AdaptiveCards.Rendering.Wpf.Net6.csproj#L7C19-L7C51
But the AdaptiveCardRenderer.cs will load the AdaptiveCards.Rendering.Wpf assembly and throw the exception, see
AdaptiveCardRenderer.cs
AdaptiveCards.Rendering.Wpf
AdaptiveCards/source/dotnet/Library/AdaptiveCards.Rendering.Wpf/AdaptiveCardRenderer.cs
Line 97 in 1243a36
Mini repro step:
var adaptiveCardRenderer = new AdaptiveCardRenderer(new AdaptiveHostConfig() { }); var adaptiveCard = new AdaptiveCard(new AdaptiveSchemaVersion(1,0)); adaptiveCard.Body.Add(new AdaptiveTextBlock() { Text = "Hello", Size = AdaptiveTextSize.ExtraLarge }); var json = adaptiveCard.ToJson(); var result = adaptiveCardRenderer.RenderCard(adaptiveCard);
You can find my demo code in : https://github.com/lindexi/lindexi_gd/tree/e00981126d6c0d56aee41d9142e6b944d42b0a2a/WPFDemo/LaifearwheafoWhemhaldaycearai
No response
{}
C#
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Target Platforms
WPF
SDK Version
2.8.0
Application Name
Any
Problem Description
Calling
adaptiveCardRenderer.RenderCard
will throw an exception in dotnet 6:Why? Because AssemblyName of the dotnet 6 version is
AdaptiveCards.Rendering.Wpf.Net6
, seehttps://github.com/microsoft/AdaptiveCards/blob/1243a36a19cb014a8fd638342d0d89657dc33f55/source/dotnet/Library/AdaptiveCards.Rendering.Wpf.Net6/AdaptiveCards.Rendering.Wpf.Net6.csproj#L7C19-L7C51
But the
AdaptiveCardRenderer.cs
will load theAdaptiveCards.Rendering.Wpf
assembly and throw the exception, seeAdaptiveCards/source/dotnet/Library/AdaptiveCards.Rendering.Wpf/AdaptiveCardRenderer.cs
Line 97 in 1243a36
Mini repro step:
You can find my demo code in : https://github.com/lindexi/lindexi_gd/tree/e00981126d6c0d56aee41d9142e6b944d42b0a2a/WPFDemo/LaifearwheafoWhemhaldaycearai
Screenshots
No response
Card JSON
Sample Code Language
C#
Sample Code
No response
The text was updated successfully, but these errors were encountered: