Hi @Nat323 ,
A System.TypeLoadException
generally occurs when the runtime cannot find the type you're trying to use. In this case, it seems like there's an issue loading NotificationActivator
from the Microsoft.Toolkit.Uwp.Notifications
assembly.
Verify that the Microsoft.Toolkit.Uwp.Notifications
assembly is correctly referenced in your project. Check the properties of the reference in your project to ensure it points to the correct path.
Make sure the version of the Microsoft.Toolkit.Uwp.Notifications
assembly referenced in your project matches the version specified in your code. If you're targeting version 7.1.0.0, ensure that this is the version installed via NuGet.
Try reinstalling or updating the NuGet package.
Best Regards.
Jiachen Li
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.