Skip to content
New issue

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

System.TypeLoadException: 'Could not load type 'Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat' from assembly 'Microsoft.Toolkit.Uwp.Notifications #27

Open
sn4k3 opened this issue Apr 10, 2024 · 1 comment

Comments

@sn4k3
Copy link

sn4k3 commented Apr 10, 2024

Using latest nuget in Avalonia raises:

manager = new WindowsNotificationManager(context);

System.TypeLoadException: 'Could not load type 'Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat' from assembly 'Microsoft.Toolkit.Uwp.Notifications, Version=7.1.0.0, Culture=neutral, PublicKeyToken=4aff67a105548ee2'.'

image

All nuget installed:

image

Using net6.0, when publishing with net6.0 win-x64 does the same result.

@FaBjE
Copy link

FaBjE commented Jun 4, 2024

I had the same issue. Setting the TargetOS to 10.0.17763.0 fixed it for me (.NET8)

Solution based on this issue: #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants