Question

We're using this process to use WebDeploy to deploy and compile two web sites that are a part of the solution. The approach we took was found here:

http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html

But it's only deploying one of the web sites; is there a way to tell it to publish both?

Thanks.

Was it helpful?

Solution

Web Packages created based on the above walkthrough (i.e. via VS 2010 and its derivatives like TFS etc) can only contain one web project. Unfortunately VS generated Web Packages will be limited from this sense. If you use Web Deploy (MSDeploy) EXE or API directly and then you can package more than one web site within IIS etc. I believe you are trying to accomplish this via Team Build so that is not really an option.

Although, in Team Build you can create more than one build definitions to cause multiple packages to be created. You can also set properties in your .csproj or .vbproj file (same properties mentioned in Step10 of the walkthrough). If more than one project have properties DeployOnBuild set to be true then from within single solution build within TFS you can have multiple web packages generated. You will still have to deploy each web independently. Hope this helps

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top