I work for a software company. For our upcoming
product release we would like ndoc to build correctly
without any manual inputs. We are using the
NDocConsole.exe version 1.3, with the .net framework
1.1 using an MSDN documenter. Pretty much everything
works, but we have an HTML file as the root document,
and this file contains some gif images that do not
appear in the chm. When I added the gifs manually to
the hhp file and compiled, the images were displayed.
I needed this to be automated in the build. I tried
every combination of the FilesToInclude and
AdditionalContentResourceDirectory properties, but no
files were added to the hhp file and the images were
never displayed. I loaded the settings in the GUI
application to try and get it to work, but to no avail.
Logged In: YES
user_id=1519368
Follow up:
I downloaded the source and added a simple fix to this
problem. The files were being brought to the temporary
working directory, but they were not be added to the
compiler. I just created an ArrayList of strings for the
files being added and called htmlHelp.AddFileToProject() on
each file in the list.
ArrayList additional = new ArrayList();
.
.
.
foreach(string srcFile in Directory.GetFiles(path, pattern))
{
string dstFile = Path.Combine (
workspace.WorkingDirectory, Path.GetFileName(srcFile));
File.Copy(srcFile, dstFile, true);
File.SetAttributes(dstFile, FileAttributes.Archive);
additional.Add(dstFile); //my simple code
}
.
.
.
foreach(string file in additional)
{
htmlHelp.AddFileToProject(file);
}