Built a windows app with Visual Studio 2022, but app is not opening

Navin Pokhrel 0 Reputation points
2024-12-13T14:51:40.4666667+00:00

Hello everyone. I created a project using source code in visual studio 2022. After editing the files, I clicked the build option. The application was built successfully with no error messages. But, when I browse the installed folder and try to open the built application, it didn't open. Please suggest me the steps to be followed.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,912 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,316 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,768 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,067 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 46,281 Reputation points Microsoft Vendor
    2024-12-16T02:20:37.63+00:00

    Hello,

    This is an expected behavior.

    Since Maui is developed based on the WinUI3 application framework on the Windows platform, you need to package the application into MSIX or publish it as an executable program in an unpackaged form through the Publish operation before you can start it.

    Please refer to the following document.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

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