diff --git a/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/ControlWithXamlEverywhereExceptDesktop.xaml.cs b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/ControlWithXamlEverywhereExceptDesktop.xaml.cs new file mode 100644 index 000000000000..92d6e5d05e17 --- /dev/null +++ b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/ControlWithXamlEverywhereExceptDesktop.xaml.cs @@ -0,0 +1,17 @@ +namespace uno53net9blank; +using System; +using Microsoft.UI.Xaml.Controls; + +public sealed +#if !DESKTOP + // This control tests that ControlWithXamlEverywhereExceptDesktop.xaml is not included, + // so if ControlWithXamlEverywhereExceptDesktop.xaml is included, it won't compile. + partial +#endif + class ControlWithXamlEverywhereExceptDesktop : Page +{ + public ControlWithXamlEverywhereExceptDesktop() + { + // no this.InitializeComponent(); + } +} diff --git a/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/Android/ControlWithXamlEverywhereExceptDesktop.xaml b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/Android/ControlWithXamlEverywhereExceptDesktop.xaml new file mode 100644 index 000000000000..b3285a3f19ef --- /dev/null +++ b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/Android/ControlWithXamlEverywhereExceptDesktop.xaml @@ -0,0 +1,8 @@ + + diff --git a/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/MacCatalyst/ControlWithXamlEverywhereExceptDesktop.xaml b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/MacCatalyst/ControlWithXamlEverywhereExceptDesktop.xaml new file mode 100644 index 000000000000..b3285a3f19ef --- /dev/null +++ b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/MacCatalyst/ControlWithXamlEverywhereExceptDesktop.xaml @@ -0,0 +1,8 @@ + + diff --git a/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/WebAssembly/ControlWithXamlEverywhereExceptDesktop.xaml b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/WebAssembly/ControlWithXamlEverywhereExceptDesktop.xaml new file mode 100644 index 000000000000..b3285a3f19ef --- /dev/null +++ b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/WebAssembly/ControlWithXamlEverywhereExceptDesktop.xaml @@ -0,0 +1,8 @@ + + diff --git a/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/iOS/ControlWithXamlEverywhereExceptDesktop.xaml b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/iOS/ControlWithXamlEverywhereExceptDesktop.xaml new file mode 100644 index 000000000000..b3285a3f19ef --- /dev/null +++ b/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Platforms/iOS/ControlWithXamlEverywhereExceptDesktop.xaml @@ -0,0 +1,8 @@ + + diff --git a/src/Uno.Sdk/targets/Uno.Build.targets b/src/Uno.Sdk/targets/Uno.Build.targets index 4d7bdf5629dd..b91ffbc698e9 100644 --- a/src/Uno.Sdk/targets/Uno.Build.targets +++ b/src/Uno.Sdk/targets/Uno.Build.targets @@ -29,6 +29,7 @@ Condition=" $(_IsUnoSingleProjectAndLegacy) == 'true' "> + diff --git a/src/Uno.Sdk/targets/Uno.Common.targets b/src/Uno.Sdk/targets/Uno.Common.targets index cccb233ae988..aa23807be1e4 100644 --- a/src/Uno.Sdk/targets/Uno.Common.targets +++ b/src/Uno.Sdk/targets/Uno.Common.targets @@ -115,6 +115,7 @@ <_IgnorePlatformFiles Include="$(WindowsProjectFolder)**" Condition=" $(IsWinAppSdk) != 'true' AND '$(WindowsProjectFolder)'!='' " /> + diff --git a/src/Uno.Sdk/targets/Uno.Sdk.After.targets b/src/Uno.Sdk/targets/Uno.Sdk.After.targets index 6c1290103c71..d9d8f26dd2b7 100644 --- a/src/Uno.Sdk/targets/Uno.Sdk.After.targets +++ b/src/Uno.Sdk/targets/Uno.Sdk.After.targets @@ -7,6 +7,7 @@ + diff --git a/src/Uno.Sdk/targets/Uno.SingleProject.Desktop.targets b/src/Uno.Sdk/targets/Uno.SingleProject.Desktop.targets index 7ae35763655a..97b4e023428a 100644 --- a/src/Uno.Sdk/targets/Uno.SingleProject.Desktop.targets +++ b/src/Uno.Sdk/targets/Uno.SingleProject.Desktop.targets @@ -34,6 +34,7 @@ <_AllPlatformFiles Include="$(PlatformsProjectFolder)/**/*" /> <_IgnorePlatformFiles Include="@(_AllPlatformFiles)" Exclude="@(_TargetPlatformFiles)" /> +