diff --git a/dotnet/Makefile b/dotnet/Makefile
index 06ed12c0aa80..ed4d54d4cf6d 100644
--- a/dotnet/Makefile
+++ b/dotnet/Makefile
@@ -37,6 +37,7 @@ $(1)_NUGET_TARGETS = \
$(DOTNET_DESTDIR)/$($(1)_NUGET_SDK_NAME)/targets/Xamarin.Shared.Sdk.Publish.targets \
$(DOTNET_DESTDIR)/$($(1)_NUGET_SDK_NAME)/targets/Xamarin.Shared.Sdk.TargetFrameworkInference.props \
$(DOTNET_DESTDIR)/$($(1)_NUGET_SDK_NAME)/targets/Xamarin.Shared.Sdk.props \
+ $(DOTNET_DESTDIR)/$($(1)_NUGET_SDK_NAME)/targets/Xamarin.Shared.Sdk.Trimming.props \
$(DOTNET_DESTDIR)/$($(1)_NUGET_SDK_NAME)/targets/Xamarin.Shared.Sdk.targets \
endef
diff --git a/dotnet/targets/Xamarin.Shared.Sdk.Trimming.props b/dotnet/targets/Xamarin.Shared.Sdk.Trimming.props
new file mode 100644
index 000000000000..b8f615294e1d
--- /dev/null
+++ b/dotnet/targets/Xamarin.Shared.Sdk.Trimming.props
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+ <_DefaultLinkMode>TrimMode
+
+
+
+ <_DefaultLinkMode Condition="'$(_UseNativeAot)' == 'true'">Full
+
+ <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' == 'macOS'">None
+ <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' == 'MacCatalyst' And '$(Configuration)' == 'Release'">SdkOnly
+ <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' == 'MacCatalyst' And '$(Configuration)' != 'Release'">None
+ <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' != 'macOS' And '$(_PlatformName)' != 'MacCatalyst' And '$(_SdkIsSimulator)' == 'true'">None
+ <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' != 'macOS' And '$(_PlatformName)' != 'MacCatalyst' And '$(_SdkIsSimulator)' != 'true'">SdkOnly
+
+
+ <_LinkMode Condition="'$(_LinkMode)' == '' And '$(_PlatformName)' == 'macOS'">$(LinkMode)
+ <_LinkMode Condition="'$(_LinkMode)' == '' And '$(_PlatformName)' != 'macOS'">$(MtouchLink)
+ <_LinkMode Condition="'$(_LinkMode)' == ''">$(_DefaultLinkMode)
+ <_LinkMode Condition="'$(_LinkMode)' == '' And '$(_PlatformName)' == 'macOS'">None
+ <_LinkMode Condition="'$(_LinkMode)' == '' And '$(_PlatformName)' != 'macOS'">SdkOnly
+
+
+ $(TrimMode)
+ copy
+ partial
+ full
+
+
+
diff --git a/dotnet/targets/Xamarin.Shared.Sdk.props b/dotnet/targets/Xamarin.Shared.Sdk.props
index e2c40248b2b2..1c9cd8b75698 100644
--- a/dotnet/targets/Xamarin.Shared.Sdk.props
+++ b/dotnet/targets/Xamarin.Shared.Sdk.props
@@ -143,34 +143,9 @@
<_SdkIsSimulator Condition="'$(_SdkIsSimulator)' == ''">false
-
-
-
- <_DefaultLinkMode>TrimMode
-
-
-
- <_DefaultLinkMode Condition="'$(_UseNativeAot)' == 'true'">Full
-
- <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' == 'macOS'">None
- <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' == 'MacCatalyst' And '$(Configuration)' == 'Release'">SdkOnly
- <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' == 'MacCatalyst' And '$(Configuration)' != 'Release'">None
- <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' != 'macOS' And '$(_PlatformName)' != 'MacCatalyst' And '$(_SdkIsSimulator)' == 'true'">None
- <_DefaultLinkMode Condition="'$(_UseNativeAot)' != 'true' And '$(_PlatformName)' != 'macOS' And '$(_PlatformName)' != 'MacCatalyst' And '$(_SdkIsSimulator)' != 'true'">SdkOnly
-
- <_LinkMode Condition="'$(_LinkMode)' == '' And '$(_PlatformName)' == 'macOS'">$(LinkMode)
- <_LinkMode Condition="'$(_LinkMode)' == '' And '$(_PlatformName)' != 'macOS'">$(MtouchLink)
- <_LinkMode Condition="'$(_LinkMode)' == ''">$(_DefaultLinkMode)
- <_LinkMode Condition="'$(_LinkMode)' == '' And '$(_PlatformName)' == 'macOS'">None
- <_LinkMode Condition="'$(_LinkMode)' == '' And '$(_PlatformName)' != 'macOS'">SdkOnly
-
-
- $(TrimMode)
- copy
- partial
- full
-
+
+ $(CustomAfterDirectoryBuildTargets);$(MSBuildThisFileDirectory)Xamarin.Shared.Sdk.Trimming.props
diff --git a/tests/common/DotNet.cs b/tests/common/DotNet.cs
index beaeaee24127..15be67b95b77 100644
--- a/tests/common/DotNet.cs
+++ b/tests/common/DotNet.cs
@@ -113,6 +113,33 @@ public static ExecutionResult AssertNew (string outputDirectory, string template
return new ExecutionResult (output, output, rv.ExitCode);
}
+ public static ExecutionResult InstallWorkload (params string [] workloads)
+ {
+ var args = new List ();
+ args.Add ("workload");
+ args.Add ("install");
+ args.AddRange (workloads);
+ args.Add ("-v");
+ args.Add ("diag");
+ args.Add ("--skip-manifest-update");
+
+ var env = new Dictionary ();
+ env ["MSBuildSDKsPath"] = null;
+ env ["MSBUILD_EXE_PATH"] = null;
+
+ var output = new StringBuilder ();
+ var rv = Execution.RunWithStringBuildersAsync (Executable, args, env, output, output, Console.Out, workingDirectory: Configuration.SourceRoot, timeout: TimeSpan.FromMinutes (10)).Result;
+ if (rv.ExitCode != 0) {
+ var msg = new StringBuilder ();
+ msg.AppendLine ($"'dotnet workload install' failed with exit code {rv.ExitCode}");
+ msg.AppendLine ($"Full command: {Executable} {StringUtils.FormatArguments (args)}");
+ msg.AppendLine (output.ToString ());
+ Console.WriteLine (msg);
+ Assert.Fail (msg.ToString ());
+ }
+ return new ExecutionResult (output, output, rv.ExitCode);
+ }
+
public static ExecutionResult InstallTool (string tool, string path)
{
var installed = ExecuteCommand (Executable, "tool", "list", "--tool-path", path);
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml
new file mode 100644
index 000000000000..00ed359e7842
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml.cs b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml.cs
new file mode 100644
index 000000000000..525041dbe4ac
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml.cs
@@ -0,0 +1,10 @@
+namespace MyMauiApp;
+
+public partial class App : Application {
+ public App ()
+ {
+ InitializeComponent ();
+
+ MainPage = new AppShell ();
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml
new file mode 100644
index 000000000000..6b57decd788a
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml.cs b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml.cs
new file mode 100644
index 000000000000..275a63c55d45
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml.cs
@@ -0,0 +1,8 @@
+namespace MyMauiApp;
+
+public partial class AppShell : Shell {
+ public AppShell ()
+ {
+ InitializeComponent ();
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml
new file mode 100644
index 000000000000..776cf3417da3
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml.cs b/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml.cs
new file mode 100644
index 000000000000..e345d0989aad
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml.cs
@@ -0,0 +1,23 @@
+namespace MyMauiApp;
+
+public partial class MainPage : ContentPage {
+ int count = 0;
+
+ public MainPage ()
+ {
+ InitializeComponent ();
+ }
+
+ private void OnCounterClicked (object sender, EventArgs e)
+ {
+ count++;
+
+ if (count == 1)
+ CounterBtn.Text = $"Clicked {count} time";
+ else
+ CounterBtn.Text = $"Clicked {count} times";
+
+ SemanticScreenReader.Announce (CounterBtn.Text);
+ }
+}
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Makefile b/tests/dotnet/MyMauiApp/MacCatalyst/Makefile
new file mode 100644
index 000000000000..110d078f4577
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Makefile
@@ -0,0 +1 @@
+include ../shared.mk
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/MauiProgram.cs b/tests/dotnet/MyMauiApp/MacCatalyst/MauiProgram.cs
new file mode 100644
index 000000000000..be40e566e230
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/MauiProgram.cs
@@ -0,0 +1,22 @@
+using Microsoft.Extensions.Logging;
+
+namespace MyMauiApp;
+
+public static class MauiProgram {
+ public static MauiApp CreateMauiApp ()
+ {
+ var builder = MauiApp.CreateBuilder ();
+ builder
+ .UseMauiApp ()
+ .ConfigureFonts (fonts => {
+ fonts.AddFont ("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont ("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build ();
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/MyMauiApp.csproj b/tests/dotnet/MyMauiApp/MacCatalyst/MyMauiApp.csproj
new file mode 100644
index 000000000000..994925689bfa
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/MyMauiApp.csproj
@@ -0,0 +1,8 @@
+
+
+
+ net$(BundledNETCoreAppTargetFrameworkVersion)-maccatalyst
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/AndroidManifest.xml b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 000000000000..e9937ad77d51
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/MainActivity.cs b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/MainActivity.cs
new file mode 100644
index 000000000000..3b13abcefc6f
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/MainActivity.cs
@@ -0,0 +1,9 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace MyMauiApp;
+
+[Activity (Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+public class MainActivity : MauiAppCompatActivity {
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/MainApplication.cs b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/MainApplication.cs
new file mode 100644
index 000000000000..98148b3a9bd3
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/MainApplication.cs
@@ -0,0 +1,14 @@
+using Android.App;
+using Android.Runtime;
+
+namespace MyMauiApp;
+
+[Application]
+public class MainApplication : MauiApplication {
+ public MainApplication (IntPtr handle, JniHandleOwnership ownership)
+ : base (handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/Resources/values/colors.xml b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 000000000000..c04d7492abf8
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/AppDelegate.cs b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 000000000000..a785a88c5e62
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,8 @@
+using Foundation;
+
+namespace MyMauiApp;
+
+[Register ("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate {
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Entitlements.plist b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Entitlements.plist
new file mode 100644
index 000000000000..de4adc94a9c9
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Entitlements.plist
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+ com.apple.security.network.client
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Info.plist b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 000000000000..72689771518a
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UIDeviceFamily
+
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Program.cs b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 000000000000..71b2693fdab0
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,14 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace MyMauiApp;
+
+public class Program {
+ // This is the main entry point of the application.
+ static void Main (string [] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main (args, null, typeof (AppDelegate));
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Tizen/Main.cs b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Tizen/Main.cs
new file mode 100644
index 000000000000..61a73735f5a2
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Tizen/Main.cs
@@ -0,0 +1,15 @@
+using System;
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+
+namespace MyMauiApp;
+
+class Program : MauiApplication {
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+
+ static void Main (string [] args)
+ {
+ var app = new Program ();
+ app.Run (args);
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Tizen/tizen-manifest.xml b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 000000000000..b54d2f3f1acc
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/App.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/App.xaml
new file mode 100644
index 000000000000..2cf1151d6a19
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/App.xaml.cs b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/App.xaml.cs
new file mode 100644
index 000000000000..458f1e69afd4
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,23 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace MyMauiApp.WinUI;
+
+///
+/// Provides application-specific behavior to supplement the default Application class.
+///
+public partial class App : MauiWinUIApplication {
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App ()
+ {
+ this.InitializeComponent ();
+ }
+
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+}
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/Package.appxmanifest b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 000000000000..2fa872637ce0
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/app.manifest b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/app.manifest
new file mode 100644
index 000000000000..cf0aafb04f3c
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/AppDelegate.cs b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 000000000000..a785a88c5e62
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,8 @@
+using Foundation;
+
+namespace MyMauiApp;
+
+[Register ("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate {
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/Info.plist b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/Info.plist
new file mode 100644
index 000000000000..0004a4fdee5d
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/Program.cs b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/Program.cs
new file mode 100644
index 000000000000..71b2693fdab0
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/Program.cs
@@ -0,0 +1,14 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace MyMauiApp;
+
+public class Program {
+ // This is the main entry point of the application.
+ static void Main (string [] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main (args, null, typeof (AppDelegate));
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Properties/launchSettings.json b/tests/dotnet/MyMauiApp/MacCatalyst/Properties/launchSettings.json
new file mode 100644
index 000000000000..edf8aadcc83b
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/AppIcon/appicon.svg b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/AppIcon/appicon.svg
new file mode 100644
index 000000000000..9d63b6513a1c
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/AppIcon/appiconfg.svg b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 000000000000..21dfb25f187b
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Fonts/OpenSans-Regular.ttf b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 000000000000..9ab655d2b28b
Binary files /dev/null and b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Fonts/OpenSans-Semibold.ttf b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 000000000000..2b7468e997d8
Binary files /dev/null and b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Images/dotnet_bot.png b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Images/dotnet_bot.png
new file mode 100644
index 000000000000..f93ce025a8aa
Binary files /dev/null and b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Images/dotnet_bot.png differ
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Raw/AboutAssets.txt b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Raw/AboutAssets.txt
new file mode 100644
index 000000000000..15d6244845fb
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with you package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Splash/splash.svg b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Splash/splash.svg
new file mode 100644
index 000000000000..21dfb25f187b
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Styles/Colors.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Styles/Colors.xaml
new file mode 100644
index 000000000000..30307a5ddc3b
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Styles/Colors.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+ #512BD4
+ #ac99ea
+ #242424
+ #DFD8F7
+ #9880e5
+ #2B0B98
+
+ White
+ Black
+ #D600AA
+ #190649
+ #1f1f1f
+
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Styles/Styles.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Styles/Styles.xaml
new file mode 100644
index 000000000000..e0d36bb7ffe9
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Resources/Styles/Styles.xaml
@@ -0,0 +1,426 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/App.xaml b/tests/dotnet/MyMauiApp/iOS/App.xaml
new file mode 100644
index 000000000000..00ed359e7842
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/App.xaml.cs b/tests/dotnet/MyMauiApp/iOS/App.xaml.cs
new file mode 100644
index 000000000000..525041dbe4ac
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/App.xaml.cs
@@ -0,0 +1,10 @@
+namespace MyMauiApp;
+
+public partial class App : Application {
+ public App ()
+ {
+ InitializeComponent ();
+
+ MainPage = new AppShell ();
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/AppShell.xaml b/tests/dotnet/MyMauiApp/iOS/AppShell.xaml
new file mode 100644
index 000000000000..6b57decd788a
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/AppShell.xaml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/AppShell.xaml.cs b/tests/dotnet/MyMauiApp/iOS/AppShell.xaml.cs
new file mode 100644
index 000000000000..275a63c55d45
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/AppShell.xaml.cs
@@ -0,0 +1,8 @@
+namespace MyMauiApp;
+
+public partial class AppShell : Shell {
+ public AppShell ()
+ {
+ InitializeComponent ();
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/MainPage.xaml b/tests/dotnet/MyMauiApp/iOS/MainPage.xaml
new file mode 100644
index 000000000000..776cf3417da3
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/MainPage.xaml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/MainPage.xaml.cs b/tests/dotnet/MyMauiApp/iOS/MainPage.xaml.cs
new file mode 100644
index 000000000000..e345d0989aad
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/MainPage.xaml.cs
@@ -0,0 +1,23 @@
+namespace MyMauiApp;
+
+public partial class MainPage : ContentPage {
+ int count = 0;
+
+ public MainPage ()
+ {
+ InitializeComponent ();
+ }
+
+ private void OnCounterClicked (object sender, EventArgs e)
+ {
+ count++;
+
+ if (count == 1)
+ CounterBtn.Text = $"Clicked {count} time";
+ else
+ CounterBtn.Text = $"Clicked {count} times";
+
+ SemanticScreenReader.Announce (CounterBtn.Text);
+ }
+}
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Makefile b/tests/dotnet/MyMauiApp/iOS/Makefile
new file mode 100644
index 000000000000..110d078f4577
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Makefile
@@ -0,0 +1 @@
+include ../shared.mk
diff --git a/tests/dotnet/MyMauiApp/iOS/MauiProgram.cs b/tests/dotnet/MyMauiApp/iOS/MauiProgram.cs
new file mode 100644
index 000000000000..be40e566e230
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/MauiProgram.cs
@@ -0,0 +1,22 @@
+using Microsoft.Extensions.Logging;
+
+namespace MyMauiApp;
+
+public static class MauiProgram {
+ public static MauiApp CreateMauiApp ()
+ {
+ var builder = MauiApp.CreateBuilder ();
+ builder
+ .UseMauiApp ()
+ .ConfigureFonts (fonts => {
+ fonts.AddFont ("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont ("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build ();
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/MyMauiApp.csproj b/tests/dotnet/MyMauiApp/iOS/MyMauiApp.csproj
new file mode 100644
index 000000000000..fe6262ddade5
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/MyMauiApp.csproj
@@ -0,0 +1,8 @@
+
+
+
+ net$(BundledNETCoreAppTargetFrameworkVersion)-ios
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Android/AndroidManifest.xml b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 000000000000..e9937ad77d51
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Android/MainActivity.cs b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/MainActivity.cs
new file mode 100644
index 000000000000..3b13abcefc6f
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/MainActivity.cs
@@ -0,0 +1,9 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace MyMauiApp;
+
+[Activity (Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+public class MainActivity : MauiAppCompatActivity {
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Android/MainApplication.cs b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/MainApplication.cs
new file mode 100644
index 000000000000..98148b3a9bd3
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/MainApplication.cs
@@ -0,0 +1,14 @@
+using Android.App;
+using Android.Runtime;
+
+namespace MyMauiApp;
+
+[Application]
+public class MainApplication : MauiApplication {
+ public MainApplication (IntPtr handle, JniHandleOwnership ownership)
+ : base (handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Android/Resources/values/colors.xml b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 000000000000..c04d7492abf8
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/AppDelegate.cs b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 000000000000..a785a88c5e62
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,8 @@
+using Foundation;
+
+namespace MyMauiApp;
+
+[Register ("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate {
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Entitlements.plist b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Entitlements.plist
new file mode 100644
index 000000000000..de4adc94a9c9
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Entitlements.plist
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+ com.apple.security.network.client
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Info.plist b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 000000000000..72689771518a
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UIDeviceFamily
+
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Program.cs b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 000000000000..71b2693fdab0
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,14 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace MyMauiApp;
+
+public class Program {
+ // This is the main entry point of the application.
+ static void Main (string [] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main (args, null, typeof (AppDelegate));
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Tizen/Main.cs b/tests/dotnet/MyMauiApp/iOS/Platforms/Tizen/Main.cs
new file mode 100644
index 000000000000..61a73735f5a2
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Tizen/Main.cs
@@ -0,0 +1,15 @@
+using System;
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+
+namespace MyMauiApp;
+
+class Program : MauiApplication {
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+
+ static void Main (string [] args)
+ {
+ var app = new Program ();
+ app.Run (args);
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Tizen/tizen-manifest.xml b/tests/dotnet/MyMauiApp/iOS/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 000000000000..b54d2f3f1acc
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/App.xaml b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/App.xaml
new file mode 100644
index 000000000000..2cf1151d6a19
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/App.xaml.cs b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/App.xaml.cs
new file mode 100644
index 000000000000..458f1e69afd4
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,23 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace MyMauiApp.WinUI;
+
+///
+/// Provides application-specific behavior to supplement the default Application class.
+///
+public partial class App : MauiWinUIApplication {
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App ()
+ {
+ this.InitializeComponent ();
+ }
+
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+}
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/Package.appxmanifest b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 000000000000..57b21d5bd7db
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/app.manifest b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/app.manifest
new file mode 100644
index 000000000000..cf0aafb04f3c
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/AppDelegate.cs b/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 000000000000..a785a88c5e62
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,8 @@
+using Foundation;
+
+namespace MyMauiApp;
+
+[Register ("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate {
+ protected override MauiApp CreateMauiApp () => MauiProgram.CreateMauiApp ();
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/Info.plist b/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/Info.plist
new file mode 100644
index 000000000000..0004a4fdee5d
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/Program.cs b/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/Program.cs
new file mode 100644
index 000000000000..71b2693fdab0
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/Program.cs
@@ -0,0 +1,14 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace MyMauiApp;
+
+public class Program {
+ // This is the main entry point of the application.
+ static void Main (string [] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main (args, null, typeof (AppDelegate));
+ }
+}
diff --git a/tests/dotnet/MyMauiApp/iOS/Properties/launchSettings.json b/tests/dotnet/MyMauiApp/iOS/Properties/launchSettings.json
new file mode 100644
index 000000000000..edf8aadcc83b
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/AppIcon/appicon.svg b/tests/dotnet/MyMauiApp/iOS/Resources/AppIcon/appicon.svg
new file mode 100644
index 000000000000..9d63b6513a1c
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/AppIcon/appiconfg.svg b/tests/dotnet/MyMauiApp/iOS/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 000000000000..21dfb25f187b
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/Fonts/OpenSans-Regular.ttf b/tests/dotnet/MyMauiApp/iOS/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 000000000000..9ab655d2b28b
Binary files /dev/null and b/tests/dotnet/MyMauiApp/iOS/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/Fonts/OpenSans-Semibold.ttf b/tests/dotnet/MyMauiApp/iOS/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 000000000000..2b7468e997d8
Binary files /dev/null and b/tests/dotnet/MyMauiApp/iOS/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/Images/dotnet_bot.png b/tests/dotnet/MyMauiApp/iOS/Resources/Images/dotnet_bot.png
new file mode 100644
index 000000000000..f93ce025a8aa
Binary files /dev/null and b/tests/dotnet/MyMauiApp/iOS/Resources/Images/dotnet_bot.png differ
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/Raw/AboutAssets.txt b/tests/dotnet/MyMauiApp/iOS/Resources/Raw/AboutAssets.txt
new file mode 100644
index 000000000000..15d6244845fb
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with you package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/Splash/splash.svg b/tests/dotnet/MyMauiApp/iOS/Resources/Splash/splash.svg
new file mode 100644
index 000000000000..21dfb25f187b
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/Styles/Colors.xaml b/tests/dotnet/MyMauiApp/iOS/Resources/Styles/Colors.xaml
new file mode 100644
index 000000000000..30307a5ddc3b
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Resources/Styles/Colors.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+ #512BD4
+ #ac99ea
+ #242424
+ #DFD8F7
+ #9880e5
+ #2B0B98
+
+ White
+ Black
+ #D600AA
+ #190649
+ #1f1f1f
+
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/dotnet/MyMauiApp/iOS/Resources/Styles/Styles.xaml b/tests/dotnet/MyMauiApp/iOS/Resources/Styles/Styles.xaml
new file mode 100644
index 000000000000..e0d36bb7ffe9
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Resources/Styles/Styles.xaml
@@ -0,0 +1,426 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/shared.csproj b/tests/dotnet/MyMauiApp/shared.csproj
new file mode 100644
index 000000000000..bcf263936efe
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/shared.csproj
@@ -0,0 +1,50 @@
+
+
+ Exe
+ MyMauiApp
+ true
+ true
+ enable
+ enable
+
+
+ MyMauiApp
+
+
+ com.xamarin.mymauiapp
+
+
+ 1.0
+ 1
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/dotnet/MyMauiApp/shared.mk b/tests/dotnet/MyMauiApp/shared.mk
new file mode 100644
index 000000000000..73cd651028e7
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/shared.mk
@@ -0,0 +1,3 @@
+TOP=../../../..
+TESTNAME=MyMauiApp
+include $(TOP)/tests/common/shared-dotnet.mk
diff --git a/tests/dotnet/UnitTests/MauiTest.cs b/tests/dotnet/UnitTests/MauiTest.cs
new file mode 100644
index 000000000000..8cea8c1297c6
--- /dev/null
+++ b/tests/dotnet/UnitTests/MauiTest.cs
@@ -0,0 +1,43 @@
+using System.Diagnostics;
+using System.Xml;
+
+using Mono.Cecil;
+
+#nullable enable
+
+namespace Xamarin.Tests {
+ [TestFixture]
+ public class MauiTest : TestBaseClass {
+ [TestCase (ApplePlatform.iOS, "ios-arm64")]
+ [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64")]
+ public void BuildMauiApp (ApplePlatform platform, string runtimeIdentifiers)
+ {
+ var project = "MyMauiApp";
+ Configuration.IgnoreIfIgnoredPlatform (platform);
+
+ var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var appPath);
+ Clean (project_path);
+
+ DotNet.InstallWorkload ("maui-tizen");
+
+ var properties = GetDefaultProperties (runtimeIdentifiers);
+ var rv = DotNet.AssertBuild (project_path, properties);
+ AssertThatLinkerExecuted (rv);
+ var infoPlistPath = GetInfoPListPath (platform, appPath);
+ var infoPlist = PDictionary.FromFile (infoPlistPath)!;
+ Assert.AreEqual ("com.xamarin.mymauiapp", infoPlist.GetString ("CFBundleIdentifier").Value, "CFBundleIdentifier");
+ Assert.AreEqual ("MyMauiApp", infoPlist.GetString ("CFBundleDisplayName").Value, "CFBundleDisplayName");
+ Assert.AreEqual ("1", infoPlist.GetString ("CFBundleVersion").Value, "CFBundleVersion");
+ Assert.AreEqual ("1.0", infoPlist.GetString ("CFBundleShortVersionString").Value, "CFBundleShortVersionString");
+
+
+ Assert.IsTrue (BinLog.TryFindPropertyValue (rv.BinLogPath, "TrimMode", out var trimModeValue), "Could not find the property 'TrimMode' in the binlog.");
+ Assert.IsTrue (BinLog.TryFindPropertyValue (rv.BinLogPath, "_LinkMode", out var linkModeValue), "Could not find the property '_LinkMode' in the binlog.");
+ Assert.IsTrue (BinLog.TryFindPropertyValue (rv.BinLogPath, "MtouchLink", out var mtouchLinkValue), "Could not find the property 'MtouchLink' in the binlog.");
+
+ Assert.AreEqual ("copy", trimModeValue, "TrimMode");
+ Assert.AreEqual ("None", linkModeValue, "LinkMode");
+ Assert.AreEqual ("None", mtouchLinkValue, "MtouchLink");
+ }
+ }
+}