.Net MAUI desctop app

K00300006: Lionel Jose Maria 25 Reputation points
2024-06-12T18:35:45.7166667+00:00

I am new to programming. I am trying to figure out how to work with MAUI. The problem is that the program does not start in Windows Explorer, but everything works fine from Visual Studio (mobile and desktop versions).Windows11

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,140 questions
{count} votes

Accepted answer
  1. Lloyd Sheen 1,476 Reputation points
    2024-06-12T20:52:53.6066667+00:00

    Just tried it with one of my apps and the same thing happened. When I tried both Debug and Release. When I want an exe that I can execute I do the following:Create windows .exe

    Navigate to project folder

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

    The navigation to the project folder should be done by Tools/CommandLine/Developer Command Prompt

    Then you can copy the dotnet publish and paste it into the command window. Hit enter and it will create a windows exe that can be used. Not that I create a Release exe as it will run faster and actually never tried with Debug

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful