I have a VS 2010 WCF service solution which I would like to deploy to IIS 7.5 servers via web deploy package. I would like to have the web deploy package generated when the WCF service project builds. I have seen other examples of how to initiate a web deploy packaging after build via importing MS Build targets for web deploy into the .csproj. But I cannot wrap my head around things which I am may or may not be able to to do this way.
I want my web deploy package to do the following tasks when deployed on a target server:
- Create a new web site on the target server with an app pool to target framework 4.0 which uses NETWORK SERVICE identity
- Add site bindings to enable net.tcp on a specific port and enable http and net.tcp prootocols
- Create a web application under this new site to point to a specific file system folder
- Run a .bat file to start couple of net.tcp related services to support non http WCF activation
From whatever I have read about web deploy, some of these can be done via webdeploy manifest files and including specific providers. What I am not understanding is telling the MS build packaging mechanism to pass the providers to include in the manifest and the values. I am fairly new to Web deploy and any help/pointers to solve this would be greatly appreciated.