.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,900 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
Can you please tell when we can you ServiceController in MAUI application?
Thanks,
System.ServiceProcess.ServiceController is currently available to .Net 6 apps running on Windows, including those using MAUI.
ServiceController is not relevant on other platforms and will raise a PlatformNotSupportedException:
ServiceController enables manipulating and accessing Windows services and it is not applicable for other operating systems.