I have a Visual C# .Net project, and I want to add a Help file. I know
how to create the compiled help file (MyHelp.chm) using HTML help
workshop, but I don't know how to deploy the help file. What's the
best way to set this up?
These are some things I'm wondering about: If I put the help file
(.chm) in the directory with the source files, then in the code, I
could say that the Help file is "..\..\MyHelp.chm", and that would
find it -- as long as the compiled .exe file is in the .\bin\Debug
directory. But what happens when the project is installed on another
machine? I "deployed" this project by copying the \bin\Debug directory
to another machine, and that worked fine. If the Help file were in
that directory, that would be fine; I could just say in the code that
the help file is "MyHelp.chm", and it would find it. But if I keep the
.chm file in the source directory, how can I get it into the
\bin\Debug directory automatically as part of the build? Is there a
"custom build step" I can use to copy a file like this? (There was in
Visual Studio 6, but I can't find anything corresponding to that in
V.S. .Net).
How do other people handle this whole issue of help files? There must
be some standard practices.
I've searched the Microsoft documentation, but I haven't found any
help on this particular issue (if you could point me to some relevant
documentation that really answers these questions, I'd appreciate it.) |