Starting a Windows service as a standalone application in DEBUG mode

I have a windows service that I need to install (installutil) every time I debug the application during development. Is there any way to configure the Installer / ProjectInstaller classes so that it runs as a console application during debug mode. Something like #if .. # endif preprocessors can help?

+3
source share
2 answers

Not sure if this helps, but when I write services, I write the “working” part of the service as a DLL and use it from the Winform / console application. I use only the actual service to call an already proven and stable working DLL.

+1

Windows Daemoniq. Windows . http://daemoniq.org

:

  • CommonServiceLocator
  • , serviceName, displayName, description serviceStartMode app.config
  • Windows
  • app.config
  • via app.config
  • , ,

!

0

Source: https://habr.com/ru/post/1724742/


All Articles