concept Sandcastle in category .net

appears as: Sdcastle
Continuous Integration in .NET

This is an excerpt from Manning's book Continuous Integration in .NET.

Another build type is the weekly build, which runs automatically and usually on the weekend. Once a week, you should run a code analysis and additional tests with tools like Selenium, FitNesse, and NUnitForms. You may also want to create documentation with Sandcastle or do continuous database integration. As you get closer to your release date, you may want to run the weekly test build more often. You’ll also want to run a release build.

Sandcastle is a set of free tools from Microsoft that you can use to transform XML documentation into a formatted document. It contains a bunch of command-line programs that you can automate to create documentation, but this technique would take too long to discuss here. There’s a much quicker and more pleasant way: you can use Sandcastle Help File Builder (SHFB), which is also free. Both are available from CodePlex: Sandcastle at www.codeplex.com/Sandcastle and SHFB at http://shfb.codeplex.com/. Install both on your development machine.

9.2.1. Building with Sandcastle

Start SHFB, which is essentially a GUI for Sandcastle. Using this tool, you’ll create a project file with all the necessary settings. At the end, you’ll take this file for a ride with MSBuild.

You want to be able to create documentation even on a machine that doesn’t have Sandcastle and SHFB installed. So take both installed tools and copy them to the tools directory in your project folder: put Sandcastle in tools\Sandcastle and SHFB in tools\SHFB. Remember to put in the tools directory only what’s needed—don’t clutter the project directory with unnecessary files. What you need depends on what template you’ll use to format the documentation. You can delete all the readme and help files—you don’t need them in the repository.

Figure 9.8. A CHM file created from XML documentation using Sandcastle