Close button on windows is not working

Dani_S 2,886 Reputation points


I publish my MAUI app as follow and create executable file

dotnet publish -f net6.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None

When trying to close the close button of the app on the right corner of page is not closed.

It is not work on window 10 and above but work on server 2019 and above.


A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,983 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rob Caplan - MSFT 5,427 Reputation points Microsoft Employee

    This is a bug tracked in the MAUI repo on github at Close button - not close the app in window. #7197.

    It sounds like you have new information on this since you first reported it. I suggest you update the existing bug with your current version information.

    The MAUI repo is the right place for MAUI bug reports. Bug reports and feature requests are off topic on Q&A (see Guidelines for posting a quality question on Microsoft Q&A.

    0 comments No comments