diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Shared/App.xaml.cs b/src/SolutionTemplate/UnoSolutionTemplate/Shared/App.xaml.cs index 1eb07c86a3d4..5b7d0935ebc1 100644 --- a/src/SolutionTemplate/UnoSolutionTemplate/Shared/App.xaml.cs +++ b/src/SolutionTemplate/UnoSolutionTemplate/Shared/App.xaml.cs @@ -33,7 +33,7 @@ public App() this.InitializeComponent(); -#if !WINDOWS +#if HAS_UNO || NETFX_CORE this.Suspending += OnSuspending; #endif }