Testing Windows Services in .Net

I am developing a Windows service in C # .Net, and I have some dificulty to run and test my service. I use the timer component to run it from time to time and execute my methods. I have to constantly configure the service to start it. Does anyone know a more practical way to test a service?

+5
source share
5 answers

You probably want to add unit tests to your service.

It looks like you could benefit more from adding your application to the Task Scheduler instead of running it as a service.

, , , . .EXE, .

+3

, . , ? ...

  • .

... , .

+12

Windows - EXE, .

, , , , Main, , . , Visual Studio ..

+9

- Windows . , .

, , , .

+2

.

InstallUtil.exe Windows ( .NET Framework), InstallUtil.exe. ( ).

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Installutil.exe

.NET.NET, ( ).

InstallUtil.exe " "

.NET, /u.

InstallUtil.exe/u " "

+2

All Articles