I recently wrote a blog post about this: http://www.22bugs.co/post/sandcastle-help-file-builder-tfs-build/ . Here are the necessary steps:
1. Download and install SHFB on the build server
Get the latest version from https://github.com/EWSoftware/SHFB†►shfb] and install it on your build server. After installation is complete, a reboot may be required.
2. Locate the fall (optional)
Modify the ** file. shfbproj * by adding the following:
<OutDir Condition=" '$(OutDir)' == ''">.</OutDir> <OutputPath>$(OutDir)\Help</OutputPath>
This will instruct TFS to copy the SHFB output to the drop-down folder.
3. Locate the deployment (optional)
If after each successful build you want to automatically deploy the output to a different location (except the delta folder), you can define the following task after the build:
if NOT "$(DeployDocsTo)" == "" ( powershell "\"$(DeployDocsTo)\" -split \";\" | foreach { Copy-Item \"$(OutputPath)\" \"$_\" -Force -Recurse }" )
You can now define the MSBuild $(DeployDocsTo)
argument to tell TFS where you can deploy your documents. For example, set it to
/p:DeployDocsTo="\\app-server\c$\docs"
Good luck.
niaher
source share