I have been using and publishing multiple websites in single web role without any issues. Then I tried implementing continuous delivery with Team foundation service as mentioned in http://www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-tfs/ But the problem started when i tried to use (azure)TFS builds. The build always fails when compiling the secondary site.
There are no issues when manually packaged and deployed or packaging and deploying using powershell scripts. Earlier to overcome the issue of secondary sites not publishing I used the solution mentioned in this blog michaelcollier.wordpress.com/2013/01/14/multiple-sites-in-a-web-role/ and it worked fine. Now TFS builds fail with or without this hack.
When I checked the build drop folder I noticed that the TFS builds create a folder only for the web role and not for the secondary sites and when the build script looks for that folder of secondary website it fails as there is none.
Any solution for this issue is welcome.
More info--
This is a cloud service and not an azure web site. This web role is part of set of worker and web roles which are deployed together in a deployment.
I used the AzureContinuousDeployment.11.xaml template. I configured the Deployment Settings Name as the cloud service name. And filled in the details of Step 5 - Publishing -- Azure Cloud service as per my deployment setup. I left the step 6 - Publishing Azure website empty as this is not an azure website.
The error anyway is happening during the build of the web role with the secondary website .
Error format
: Cannot find the physical directory 'C:**Secondary Website Project Name**' for virtual path Secondary site name configured in Service definition file./.