Skip to content

Commit

Permalink
feat: Make breaking on unhandled exceptions opt-in
Browse files Browse the repository at this point in the history
(cherry picked from commit 48d42f6)
  • Loading branch information
MartinZikmund authored and mergify[bot] committed Sep 10, 2024
1 parent d5884a7 commit dbd23f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Uno.Sdk/targets/Uno.Common.targets
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
<None Include="@(_IgnorePlatformFiles)" Sdk="Uno" />
</ItemGroup>

<PropertyGroup>
<!-- Make breaking on Application.UnhandledException opt-in only -->
<DefineConstants Condition="!$(DefineConstants.Contains(DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION)) and '$(BreakOnUnhandledExceptions)' != 'true' and $(IsWinAppSdk) != 'true' ">$(DefineConstants);DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION</DefineConstants>
</PropertyGroup>

<ItemGroup Condition="$(UnoFeatures.Contains(';dsp;'))">
<!-- New Material Theme Builder export format (Uno.Dsp 1.3+) -->
<UnoDspImportColors Include="Styles\*.json" Generator="Xaml" Condition="!$(UnoFeatures.Contains(';csharpmarkup;'))" />
Expand Down

0 comments on commit dbd23f3

Please sign in to comment.