-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added error handling. #1607
base: main
Are you sure you want to change the base?
Added error handling. #1607
Conversation
WinUIGallery/App.xaml.cs
Outdated
@@ -24,6 +24,7 @@ | |||
using System.Text; | |||
using Windows.System; | |||
using System.Runtime.InteropServices; | |||
using Microsoft.Toolkit.Uwp.Notifications; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be able to use the WinAppSDK Notifications instead from the Community Toolkit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it.
/azp run |
WinUIGallery/WinUIGallery.csproj
Outdated
@@ -83,6 +83,30 @@ | |||
<AppxBundle>Never</AppxBundle> | |||
</PropertyGroup> | |||
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Unpackaged|x86'" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are changes here intentional? If so, what is it for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are changes here intentional? If so, what is it for?
Fixed it.
When an unhandled exception gets thrown the app no longer crashes. Now the user gets a notification with the exception.
Description
Motivation and Context
The app crashes a lot.
How Has This Been Tested?
While testing I added a button that throws an exception to test my code.
Screenshots:
Types of changes