I have been looking for a library that will expose functionality to allow me to generate CHM files. As far as I can tell, that does not exist and I will have to rely on CHMBuilder (in SandCastle) but I thought I would ask before going that route.