I want to send a local toast notification from WPF program. Now I am using the latest .net 6.
And here is the tutorial of Microsoft:https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/send-local-toast?tabs=uwp
In the tutorial it said:
.NET apps must use one of the Windows TFMs, otherwise the toast sending and management APIs like Show() will be missing. Set your TFM to net6.0-windows10.0.17763.0 or later.
In windows10.0.17763.0 or later, I want to use the toast notification.
In windows10.0.17763.0 earlier or even windows 7, I will make a notification control by myself.
However, after I set the TFM to net6.0-windows10.0.17763.0. My program will not support windows10.0.17763.0 earlier or even windows 7 any more.
Is there any way I can support the two platforms both? Thank you.