Windows Application exe in debug folder not working

Vinothkumar Swaminathan 20 Reputation points
2024-04-12T04:21:54.52+00:00

After running th MAUI application in windows, I go to debug folder and tried to open the .exe application file but it's not responding. I noticed there is a createdump application file in the same path and my application file is also less size compared with my colleagues. Mine app size is 154kb but their app size is more than 400 kb and they don't have createdump application file. Added the image

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
726 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,892 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
    2024-04-12T06:10:21.2666667+00:00

    Hello,

    =========Update=========

    I have tried this solution still the same issue.

    If this enabling nonpackage publishing is not work, please release your applicaiton to exe, then click the release exe file.

    Firstly, please change your project's build cation from debug to release. Then rebuild your project.

    After that, open the cmd(click the Tools tag->Android tag-> choose Android adb command prompt).

    Then run following cmd.

    dotnet publish -f net8.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true -p:RuntimeIdentifierOverride=win10-x64
    

    After that, you can find the exe file in C:\Users\yourname\source\repos\MauiApp9\MauiApp9\bin\Release\net8.0-windows10.0.19041.0\win10-x64\publish\ folder, click the yourProject.exe file, if it works?

    After running th MAUI application in windows, I go to debug folder and tried to open the .exe application file but it's not responding

    You can do it by enabling nonpackage publishing.

    Go to Solution Explorer and double-click on your project(if your project name is MauiApp1, double click the MauiApp1 under the Solution MauiApp1) to open your project's csproj file.

    Copy <WindowsPackageType>None</WindowsPackageType> in the <PropertyGroup> tag, then rebuild the your project.

    After that, click the exe file in the debug folder, you can open your MAUI application.

    Best Regards,

    Leon Lu


    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful