You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Works with .NET 5
* Keep UWP min version at 10240
* Undo accidentally committed change
* Aleader/notifications net 5 and native (#3644)
* Making package works but throws at runtime
* I think it all works!
* Remove comment and update description
* Support for UWP 10240
Just using winmd version
* Interop working on all but UWP 15063 and lower
* Fix warnings
* Support activating when process is elevated
* Fix warnings
* Nuspec updates
Co-authored-by: Alexandre Zollinger Chohfi <[email protected]>
Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>
Copy file name to clipboardExpand all lines: Directory.Build.targets
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,21 @@
1
1
<Project>
2
2
3
3
<PropertyGroup>
4
-
<UseUWPCondition="'$(TargetFramework)' == 'uap10.0' or '$(TargetFramework)' == 'uap10.0.17763' or '$(TargetFramework)' == 'native' or '$(TargetFramework)' == 'net461'">true</UseUWP>
4
+
<UseUWPCondition="$(TargetFramework.Contains(`uap10.0`)) or '$(TargetFramework)' == 'net461'">true</UseUWP>
5
5
</PropertyGroup>
6
6
7
7
<Choose>
8
-
<WhenCondition="!$(TargetFramework.Contains(`uap10.0`)) and '$(TargetFramework)' != 'native' and '$(IsSampleProject)' != 'true'">
8
+
<!--We'll include signing the Notifications library since we need the DLL signature to match for interop from class libraries to main projects-->
9
+
<WhenCondition="(!$(TargetFramework.Contains(`uap10.0`)) and '$(TargetFramework)' != 'native' and '$(IsSampleProject)' != 'true') or $(MSBuildProjectName) == 'Microsoft.Toolkit.Uwp.Notifications'">
<PropertyGroupCondition="'$(TargetFramework)'=='net461' or '$(TargetFramework)'=='netcoreapp3.1' or '$(TargetFramework)'=='net5.0-windows10.0.17763.0'">
23
+
<!--Define the WINDOWS_UWP conditional symbol, since the Windows.Data.Xml and the Windows.UI.Notification namespaces are available-->
<!--Set the nuspec properties. Dependent on version which isn't updated till after GetBuildVersion. Condition ensures we only set once since this runs multiple times for each target.-->
<description>The official way to send toast notifications on Windows 10 via code rather than XML, with the help of IntelliSense. Supports all C# app types, including WPF, UWP, WinForms, and Console, even without packaging your app as MSIX. Also supports C++ UWP apps.
13
+
14
+
Additionally, generate notification payloads from your ASP.NET web server to send as push notifications, or generate notification payloads from class libraries.
15
+
16
+
For UWP/MSIX apps, you can also generate tile and badge notifications.</description>
0 commit comments