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?
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, .
, . , ? ...
... , .
Windows - EXE, .
, , , , Main, , . , Visual Studio ..
Main
- Windows . , .
, , , .
.
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 " "