Thursday, 29 August 2013

How can I get the TFS build template publishedwebsites web folder name

How can I get the TFS build template publishedwebsites web folder name

I have a build template that I am trying to customize. As part of that, I
added a CopyDirectory workflow task to copy the published website from the
_PublishedWebsites directory folder to the IIS web folder. So, since the
name of my project is "CM.Web", it creates a directory called
"_PublishedWebsites\CM.Web". I can obviously hardcode this, but I wanted
it to pick up the name from the project itself.
But then I realized that it can have more than one web folder, if I have
more than 1 web project in my solution. So, I assume I have to write a
workflow task that involves a loop of some sort. I think I basically have
to loop over all the web projects in my solution and then copy the output
for each one.. Which is probably why I cannot get a handle on the web
folder it is creating. UNLESS - I am not supposed to create a build for
more than 1 web project.
I want to be able to set the source in the CopyDirectory to say something
like:
BuildDetail.DropLocation & "\_PublishedWebsites\" & [the web project
folder name]

No comments:

Post a Comment