I am working on WinForms app which I'm trying to open MAUI application from WinForms application.
So, I'm wondering if it's possible to programmatically open a MAUI application from within a WinForms app?
Thank you for the answers.
I am working on WinForms app which I'm trying to open MAUI application from WinForms application.
So, I'm wondering if it's possible to programmatically open a MAUI application from within a WinForms app?
Thank you for the answers.
 
    
    The maui proejct on the windows will be packaged by the MSIX Application Packager. You can add the following code below </uap:VisualElements> in the /Platforms/Windows/Package.appxmanifest:
xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
     .....
     .....
</uap:VisualElements>
       <Extensions>
                    <uap5:Extension
                                Category="windows.appExecutionAlias"
                                Executable="MauiAppTest.exe"
                                EntryPoint="Windows.FullTrustApplication">
                          <uap5:AppExecutionAlias>
                                <uap5:ExecutionAlias Alias="MyApp.exe" />
                          </uap5:AppExecutionAlias>
                    </uap5:Extension>
              </Extensions>
And then, you can use the Process.Start("MyApp.exe"); to start the maui app in the WinForms Application.
