Question: Can I call a task for each published site/service?

May 4, 2009 at 12:47 PM
Hi there,

I have a VS solution that contains several web services and sites.
I would like to deploy these in one build script.
Basically, I want to iterate the directories in _PublishedWebsites and create a virtual directory for each (possibly by calling a seperate task for this).
Having one virtual directory for the whole solution is not an option for various reasons (one of which being it doesn't work ;-).

My question is, is this possible using the standard TFS/MSBuild and SDC functionality?
Examples of using CreateVirtualDirectory I've seen sofar have the site or service hardcoded in the TFSBuild file.
I've not found an example of iteration through directories (except for the Copy task but this seems to be an internal feature of the task).

Any help appreciated,
Jun 7, 2009 at 5:01 PM

Hi Michel, I'm scanning through open issues. Have you resolved this? ... Mike