diff --git a/tests/common/DotNet.cs b/tests/common/DotNet.cs
index beaeaee24127..9353bcd8b65c 100644
--- a/tests/common/DotNet.cs
+++ b/tests/common/DotNet.cs
@@ -113,6 +113,21 @@ public static ExecutionResult AssertNew (string outputDirectory, string template
return new ExecutionResult (output, output, rv.ExitCode);
}
+ public static ExecutionResult InstallWorkload (string workload)
+ {
+ var args = new string [] {
+ "workload",
+ "install",
+ workload,
+ "-v", "diag",
+ "--skip-manifest-update",
+ };
+
+ var rv = ExecuteCommand (Executable, args);
+ Assert.AreEqual (0, rv.ExitCode, $"Installation of workload '{workload}' failed with exit code {rv.ExitCode}");
+ return rv;
+ }
+
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..c9836705f730
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml.cs
@@ -0,0 +1,11 @@
+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..a1634c517985
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml.cs
@@ -0,0 +1,9 @@
+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..8c1a2a4d67d3
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml.cs
@@ -0,0 +1,24 @@
+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..d92df321e15f
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/MauiProgram.cs
@@ -0,0 +1,24 @@
+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..b5d4583c98ae
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/MainActivity.cs
@@ -0,0 +1,10 @@
+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..132f6899b1a2
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Android/MainApplication.cs
@@ -0,0 +1,15 @@
+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..057d42c402ef
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,9 @@
+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..e3c7f9a313a7
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,15 @@
+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..e254ea7bff49
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Tizen/Main.cs
@@ -0,0 +1,16 @@
+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..5453d8b338c0
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,24 @@
+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..057d42c402ef
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,9 @@
+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..e3c7f9a313a7
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/MacCatalyst/Platforms/iOS/Program.cs
@@ -0,0 +1,15 @@
+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..c9836705f730
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/App.xaml.cs
@@ -0,0 +1,11 @@
+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..a1634c517985
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/AppShell.xaml.cs
@@ -0,0 +1,9 @@
+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..8c1a2a4d67d3
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/MainPage.xaml.cs
@@ -0,0 +1,24 @@
+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..d92df321e15f
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/MauiProgram.cs
@@ -0,0 +1,24 @@
+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..b5d4583c98ae
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/MainActivity.cs
@@ -0,0 +1,10 @@
+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..132f6899b1a2
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Android/MainApplication.cs
@@ -0,0 +1,15 @@
+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..057d42c402ef
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,9 @@
+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..e3c7f9a313a7
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,15 @@
+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..e254ea7bff49
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Tizen/Main.cs
@@ -0,0 +1,16 @@
+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..5453d8b338c0
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,24 @@
+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..057d42c402ef
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,9 @@
+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..e3c7f9a313a7
--- /dev/null
+++ b/tests/dotnet/MyMauiApp/iOS/Platforms/iOS/Program.cs
@@ -0,0 +1,15 @@
+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");
+ }
+ }
+}