Comments (7)
Yes, it's a correct place for questions.
Have you tried to use it? .NET Core 3.1 is compatible with .NET 5.
from desktopnotifications.
I just tried and getting some errors in DesktopNotifications.Windows WindowsNotificationManager.cs.
Attached is the error list.
DeskTopNotificationsErrors.txt
from desktopnotifications.
Which version of Windows are you on? Can you create a repro?
from desktopnotifications.
I see. Windows package uses Microsoft.Toolkit.Uwp.Notifications, which uses legacy WinRT COM Interop, which was removed from .NET 5. Not sure if Microsoft.Toolkit.Uwp.Notifications was updated to work with newer CsWinRT COM Interop, but if it does - multitarget for "net5.0;netcoreapp3.1" in this package should work. @pr8x
from desktopnotifications.
It seems that with .NET 5 I cannot reference Microsoft.Toolkit.Uwp.Notifications
anymore but instead have to use their "Target Framework Moniker" (https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-enhance#net-5-use-the-target-framework-moniker-option)
Tried net5.0-windows10.0.17763.0
but that doesn't support some stuff like ToastContentBuilder
or ToastNotificationManagerCompat
.
EDIT: @maxkatz6 Beat me to it :) Yeah I can probably dual-target here, but I might need to find some replacements for the missing APIs.
from desktopnotifications.
Related https://blogs.windows.com/windowsdeveloper/2021/03/16/announcing-windows-community-toolkit-v7-0/
And updated https://docs.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/send-local-toast?tabs=uwp
Tried net5.0-windows10.0.17763.0 but that doesn't support some stuff like ToastContentBuilder or ToastNotificationManagerCompat
Yes, something might be missed
from desktopnotifications.
Adding to the convo, I just tried to reference the same library for .NET 5 today and get these build errors:
DesktopNotifications.Windows.dll cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149
Microsoft.Toolkit.Uwp.Notifications.dll cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149
from desktopnotifications.
Related Issues (13)
- TODO: Nuget packages HOT 1
- Can't build test app with net6.0 HOT 5
- Avalonia: Missing notification manager HOT 2
- Progress of macOS support HOT 2
- Linux Notification Issue HOT 2
- Build fails due to Microsoft.Toolkit.Uwp.Notifications package being a prelease HOT 1
- Version 1.3.0 fails with System.PlatformNotSupportedException on Windows HOT 11
- 'Could not load ToastNotificationManagerCompat' error on Windows 10 HOT 2
- Clone x:DataType after installed this package via NuGet HOT 3
- OSX notifications HOT 6
- .NET Standard HOT 1
- Referencing 1.2.0 nuget from .netstandard project doesn't seem to work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from desktopnotifications.