Configuring Visual Studio to Publish a WCF Service Application for Build

I created a WCF application (one with a .svc file). When I create this project, only a bunch of DLLs are created, but to be able to host it in IIS I need to use the publish function (right click on the project and publish). This creates DLLs, copies app.config and .svc files. This group can now be hosted in IIS.

I want Visual Studio to publish whenever I build a project. How can i do this?

+1


a source to share


2 answers


You can also look at adding the web application project and link it to the web deployment project , then when building the solution, the output of the web deployment project should be the same as the publish operation - this approach is also much easier to use in a continuous integration environment such as cruise control.net



+1


a source


how about: post-build event, msbuild / target start : publish .



-1


a source







All Articles