pr8x / DesktopNotifications

A cross-platform C# library for native desktop "toast" notifications.
MIT License
182 stars 32 forks source link

Can't build test app with net6.0 #10

Closed kv-gits closed 1 year ago

kv-gits commented 2 years ago
C:\Program Files\dotnet\sdk\6.0.201\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(1003,5): error NETSDK1149: 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...

Also net6.0-windows gives the same error.

pr8x commented 2 years ago

I guess I need to explicitly target net6.0-windowsXXX

ghost commented 2 years ago

any update on this?

ghost commented 2 years ago

ok I got it to work by changing net5.0-windows10.0.17763.0 to net6.0-windows10.0.17763.0 on my side

HossamElwahsh commented 2 years ago

ok I got it to work by changing net5.0-windows10.0.17763.0 to net6.0-windows10.0.17763.0 on my side

Where?

pr8x commented 1 year ago

Should be resolved by #16. NET 5 support has ended so it's anyway a good idea to switch to .NET 6 since that has LTS.