You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows App SDK:
On .Net 7.0, everything works well. However, this exception will always throw on .Net 8.0 if using the AcrylicBrush
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
StackTrace:
at System.RuntimeType.CreateInstanceOfT()
at System.Activator.CreateInstance[T]()
at WinRT.WeakLazy`1.get_Value()
at WinRT.ActivationFactory`1.ActivateInstance[I]()
at Microsoft.Graphics.Canvas.Effects.GaussianBlurEffect..ctor()
at CommunityToolkit.WinUI.UI.Media.Pipelines.PipelineBuilder.<>c__DisplayClass13_0.<<Blur>g__Factory|0>d.MoveNext()
--- End of stack trace from previous location ---
at CommunityToolkit.WinUI.UI.Media.Pipelines.PipelineBuilder.BuildAsync()
at CommunityToolkit.WinUI.UI.Media.XamlCompositionEffectBrushBase.OnConnected()
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Hello zhuxb711, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
I think this is the issue related to the Win2D team. CommunityToolkit.WinUI.UI.Media 7.1.2 only require Microsoft.Graphics.Win2D >= 1.0.0.30, which is too old and released on 2021/11/17. So the solution is installing the Microsoft.Graphics.Win2D directly on your project to manually upgrade it to 1.1.1. Which solved this issue.
Describe the bug
Windows App SDK:
On .Net 7.0, everything works well. However, this exception will always throw on .Net 8.0 if using the AcrylicBrush
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
Works just like on .Net 7.0
Screenshots
No response
Windows Build Number
Other Windows Build number
Windows 11 22621
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
17.8.4
Device form factor
Desktop
Nuget packages
CommunityToolkit.WinUI.UI.Media 7.1.2
Additional context
No response
Help us help you
No.
The text was updated successfully, but these errors were encountered: