Run MAUI app

Peter_1985 2,846 Reputation points
2025-12-09T05:06:29.3266667+00:00

Hi,

After having well built one MAUI app, how to run/test it?

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-09T05:06:37.5933333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To run and test your .NET MAUI app, you need to follow these steps based on the target platform:

    For iOS:

    1. Set the Debug Target: In Visual Studio Code, ensure that the Debug Target is set to a specific iOS simulator. You can do this by pressing the curly brackets symbol { } in the status bar or by using the command palette with .NET MAUI: Pick iOS Device.
    2. Build and Run: Press F5 or click the Run button in the upper right corner of Visual Studio Code. If prompted, select C# as the debugger.
    3. Observe the App: Once the app is running in the simulator, you can interact with it and check its functionality.

    For Android:

    1. Set the Debug Target: In Visual Studio, select the Debug Target dropdown and choose Android Emulators. Then select your desired emulator device.
    2. Run the App: Press F5 or click the play button at the top of Visual Studio to run the app.
    3. Test the App: The Android app window will appear in the emulator, allowing you to test its features.

    For Desktop:

    1. Set the Debug Target: In Visual Studio, set the Debug Target to the appropriate framework (e.g., net7.0-windows).
    2. Run the App: Press F5 or select the play button to run the application. The desktop application window will appear automatically.
    3. Sign In and Test: If applicable, select the Sign In button to test the authentication process.

    By following these steps, you can effectively run and test your .NET MAUI application across different platforms.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.