Hi @mc ,
.NET Core targets cross-platform apps, so it doesn't support anything that's too specific to the operating system.
You can refer to the following question.
Implement windows service in .NET 6.0
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
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.