Run MAUI app

Peter_1985 2,866 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

2 answers

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.


  2. Michael Le (WICLOUD CORPORATION) 6,420 Reputation points Microsoft External Staff Moderator
    2025-12-12T08:05:52.24+00:00

    Hello @Peter_1985 ,

    To run and test your app, simply:

    • Open your project in Visual Studio.
    • Look for the green play button (or press F5).
    • Before you click it, there’s a dropdown next to the button where you can select the target environment.
    • For Windows testing, choose Windows Machine, then hit the play button.

    User's image

    Your app should launch, and you’ll be able to test it right away.

    If you’re new to .NET MAUI, I highly recommend walking through Microsoft’s official tutorial. It covers the basics of building and running your first app step by step: Build your first .NET MAUI app.

    The tutorial will guide you through the proper workflow for developing, testing, and eventually publishing your app when you’re ready.


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.