Wrapping a C# service in a console app to debug it

前端 未结 10 1226
遇见更好的自我
遇见更好的自我 2020-12-15 03:36

I want to debug a service written in C# and the old fashioned way is just too long. I have to stop the service, start my application that uses the service in debug mode (Vis

10条回答
  •  情书的邮戳
    2020-12-15 04:38

    Here is a blog post about running your windows service as a console app.

    You could also just create a new Console Application that references the same logic as your service to test methods, or set up Unit Tests on your services' logic

提交回复
热议问题