<p>What steps do I need to take to get HTML documentation automatically building via the build step in Visual Studio? I have all the comments in place and the comments.xml file being generated, and Sandcastle installed. I just need to know what to add to the post-build step in order to generate the docs.</p>

I recommend you install Sandcastle Help File Builder from
Codeplex
.
You can run this from the command line, e.g. from a Post-Build event.  The simplest command line is:
```
```
<install-path>\SandcastleBuilderConsole.exe ProjectName.shfb
```
```
Sandcastle is very slow, so I only run it for Release Builds.  To do this, create a Post-Build event with a command something like the following, which passes the configuration name to a batch file:
```
```
CALL "$(ProjectDir)PostBuild.cmd" $(ConfigurationName)
```
```
Then inside the batch file you can test if the first argument is "Release" and if so run SandcastleBuilderConsole.exe.