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.