Search code examples
c#wcfmsbuildnant

.Net Solution: Build Steps for windows services


I have created 2 WCF service libraries in a solution. I have also created two windows services which will host the two wcf services.

these wcf services communicate with eachother. one gets requests and is reusable service for other systems, the other service sends requests to this service and takes requests from the UI.

I have created installers for the window services too.

I want to understand the build script tasks which I need to include which I will call during each time I want to deploy this solution to the server?

Should I delete all of the windows services and install again with new DLLs?

What is the best way


Solution

  • There is no need to delete the windows services. You can stop the service, replace the service executable and all the assemblies used by your service and restart the service. This is what I've always done, and I've never run into problems.