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