This project has moved. For the latest updates, please go here.

[ALIAS] and [MAP] sections in the help project file

Topics: Developer Forum
Jun 14, 2013 at 10:15 PM
I ported a project from HTML Help Workshop to SHFB but I'm stuck on one part. I can't find a way to insert [ALIAS] and [MAP] sections in Help1x.hhp when it gets created. I already have the populated alias and map files and need a way to include them with the project so that the defined IDs are included in the CHM. HTML Help Workshop used "MyApp.hhp" to include the files similar to the following:
#include MyApp.ali

#include MyAppMap.h
How can I get these sections inserted upon building the help file?
Jun 16, 2013 at 7:41 PM
As I think I mentioned in my last reply on this subject, you'll need to create a plug-in for SHFB. It would run with the After behavior in the GenerateHelpProject build step. In the plug-in's Execute method, when the build process's CurrentFormat property equals HelpFileFormat.HtmlHelp1, you'd copy your files into the working folder and modify the default help project found there by adding your information to it. See the build process plug-ins topic for more info on creating a plug-in.