How do I run a local service in Windows?

How do I run a local service in Windows?
Answer
How to: Run a Windows Service as a console application
  1. Add a method to your service that runs the OnStart and OnStop methods: …
  2. Rewrite the Main method as follows: …
  3. In the Application tab of the project’s properties, set the Output type to Console Application.
  4. Choose Start Debugging (F5).
 

Tìm kiếm

Back
Top