Run without window on Windows
See original GitHub issueDescription
We have WPF application that we would like to port to MAUI. This application sometimes runs on the background via a command line argument. In this case we just don’t show any window with the WPF application. We tried to also enable this with the MAUI Windows application, but it seems that it always expects to open a window?
Is it possible to add an enhancement that enables us to run a .NET MAUI windows application without opening a window?
Public API Changes
In WPF we removed the StartupUri and implemented a custom OnStartup method to have the option to decide if we wanted to open a window in our startup or not. I’m not sure where this would fit in .NET MAUI?
Intended Use-Case
Running the application without any interface. This could sound strange because it somewhat defies the purpose of .NET MAUI, but is currently helps us in deploying some extra background tasks easy (via the task scheduler) at our customers sites without the need to create a service.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:18
- Comments:9

Top Related StackOverflow Question
I’m a product manager /owner at a B2B company and this issue is a huge blocker for us for utilizing .NET MAUI for Windows and MacOS, because our apps should be able to run in background without any windows (only tray)
Agreed here. I want to use MAUI for one of my tools, but I want it to start as a tray application only, until tray menu choice is actually made. There’s no reason why this shouldn’t be supported.