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
When trying to create a AppNotificationBuilder, buttons can't contain the ' character, or otherwhise when calling the builder.BuildNotification method the following COMException will be thrown:
System.Runtime.InteropServices.COMException(0xC00CE509): Required white space was missing.atWinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|38_0(Int32hr)
at ABI.Microsoft.Windows.AppNotifications.Builder.IAppNotificationBuilderMethods.BuildNotification(IObjectReference_obj)
at Microsoft.Windows.AppNotifications.Builder.AppNotificationBuilder.BuildNotification()
at C:\My\Path\MyFile.cs:line 128
Steps to reproduce the bug
IMPORTANT: This bug is only reproducable when the solution is built as "Release", as "Debug" builds will work without further issues
The following code causes the issue:
// This line will always workAppNotificationBuilderbuilder=newAppNotificationBuilder().SetScenario(AppNotificationScenario.Default).SetTag("UpdatesNotifications").AddText("Adding a ' here is fine. They work as expected and don't crash").AddText("More text").SetAttributionText("Some attribution").AddButton(newAppNotificationButton("Adding a ' here causes the COMException")).AddArgument("action","action1")).AddButton(newAppNotificationButton("Another button").AddArgument("action","action2")).AddArgument("action","action3");// The COMException occurrs on the line belowAppNotificationnotification=builder.BuildNotification();
Expected behavior
Notifications to support ' characters on buttons.
Screenshots
N/A
NuGet package version
Windows App SDK 1.6.3: 1.6.241114003
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Other
Additional context
I have tried escaping the ' character by \\' with no luck,
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to create a AppNotificationBuilder, buttons can't contain the
'
character, or otherwhise when calling the builder.BuildNotification method the following COMException will be thrown:Steps to reproduce the bug
IMPORTANT: This bug is only reproducable when the solution is built as "Release", as "Debug" builds will work without further issues
The following code causes the issue:
Expected behavior
Notifications to support
'
characters on buttons.Screenshots
N/A
NuGet package version
Windows App SDK 1.6.3: 1.6.241114003
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Other
Additional context
I have tried escaping the ' character by
\\'
with no luck,The text was updated successfully, but these errors were encountered: