C
C#2y ago
Dultus

❔ Can't use ToastContentBuilder.Show();

Hey, so I've created a WPF project in .NET 7.0 and wanted to use the Microsoft.Toolkit.Uwp.Notifications package with the ToastContentBuilder. I can't use the Show method for some reason. Documentation says that I should be on version 7.0 (using the newest one 7.1.3 (a downgrade didn't help either)), .NET 6 oder later and at least on net6.0-windows10.0.17763.0 or greater. Again, a downgrade didn't help here either. Someone got an idea?
var test = new ToastContentBuilder()
.AddText("Hello world!");
test.Show(); // Not found
var test = new ToastContentBuilder()
.AddText("Hello world!");
test.Show(); // Not found
3 Replies
sibber
sibber2y ago
if youre on .net 6 use version 6 of the package if youre on 7 use version 7
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server