Skip to content
Advertisement

How to run windows service on Linux or Mac OS [closed]

I have created windows service and it is working fine on Windows OS ,but we need to run this same service on Linux or Mac OS.

It is possible ?

Advertisement

Answer

Obviously “possible”, in the worst case reprogramming from scratch. I’m guessing the winforms tag you’ve used suggests what you think the biggest porting headache will be. Maybe check out C# WinForms application to linux which seems to be asking that same question. An even easier approach might (emphasize “might”) be to run virtualbox https://www.pcsteps.com/184-install-virtualbox-linux-mint-ubuntu/ (or see many similar pages, and many similar vm’s) under linux, and then just run your service on a windows virtual machine.

Advertisement