Not A Subscriber?
Join thousands of people who build and refuse to get left behind. One message a week on building, using AI as an accelerator, and staying sharp in the new AI frontier.
Receive one free message a weekJanuary 8, 2008 Donn Felker · updated July 5, 2013
TFS Build Not Publishing Web Applications
_PublishedWebsites does not exist?! WHAT?! Huh?
One of our TFS builds was succeeding and a fellow developer noticed that the Web App was not getting copied into the _PublishedWebsites folder of our drop location.
I took a look at our TFSBuild.Proj file and I didn’t see anything that stood out. I took a look at a similar project who’s output was being copied into the _PublishedWebsites directory and the .proj file matched that of the one that did not work.
Solution
The problem was not in the .proj file, but in the actual .csproj file for the Web Applicaiton Project.
.csproj files ARE MSBuild files and inside of that I saw this:
<!–
The second Build target file was not getting loaded.
This build target file contains a target by the name of “_CopyWebApplication” which takes the output of the web application and copies it to the _PublishedWebsites directory.
I uncommented this line, checked it back into TFS and re-ran my build and my _PublishedWebsites started showing up. 🙂
My file now looks like this: