I am trying to create a Windows service in F# using Topshelf. I have taken the sample code from the Github readme
When I try to run the command line (as an Administrator)
MyService.exe install -serviceName:MyWindowsService
MyService.exe start
nothing happens. There is no error but no service appears in the Services dialog. I do see an entry in the System Event viewer saying "A service was installed on the system", but I don't see any sign of it.
Can anyone think of anything I have missed?
For anyone interested, I had created my project as a Windows Application. Changing it to a console application fixed the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With