IHostService + Rider + Mac

Apparently Rider on mac cannot run windows service "ServiceController enables manipulating and accessing Windows services and it is not applicable for other operating systems." 

What I don't understand is that the same service on Visual Studio for mac runs without any problem.. 

are there any plans to make Rider compatible with windows service ?

 

Thank you

0
5 comments

Hi @...

Could you please describe your case in some more details? What type of project do you use? Is it possible to attach code o project sample with this case? Thank you! 

0
Avatar
Permanently deleted user

Yes, this is the project definition, and if I run it as a Console application, no problem, but if I run as a service, it fails. Last screenshot is the exception.

Thank you for your interest 

 

 

0

Hi @...

Sorry for the delay. 

I'm not sure I can reproduce it on my side. Is there any chance you can share with us a sample solution where this issue could be reproduced? You could upload it privately to our service

Also, have you tried to launch this app on Window? Does it work? 

0

Hi Alexandra, sorry for the late replay, I can't run it without debugging, but it if I run it in debug mode it works with no problem, apart from the fact that it's a bit slow but I'm aware it's a known issue.

 

Thank you for your help and sorry if I made you lose time on this. I'm new to Rider after many years with Visual Studio. 

 

here's the exception if I just run it:

0

Hi @...

According to the .Net documentation, the RunAsServiceAsync method is a specific Windows service. As a workaround, you can use Run instead on Mac. If you thins something goes wrong here or would like to have this method nod only for Windows, one can report to the .net core issue tracker.

Should you have any other questions, let us know. Have a nice day! 

0

Please sign in to leave a comment.