The following sections describe how to build the CPACS schema documentation and tool-specific schema documentation on Windows using MSBuild.
Note
The instructions below describe the manual steps required to generate documentation from XSD files.
Alternatively, you may use the preconfigured batch scriptscreateDocumentation.batandcreateToolspecificDocumentation.bat, which automate the process.Ensure that both
7zandmsbuildare available in yourPATHenvironment variable, or adjust the scripts and commands to use explicit executable paths.
Extract the bundled third-party dependencies into the development directory (for example, using 7z):
7z x -y .\development\3rdparty.zip -odevelopment\This command populates the external libraries required by the documentation build process.
The documentation build requires MSBuild, which is provided by either the Visual Studio Build Tools or a full Visual Studio installation (see Visual Studio Documentation for further details.). For example:
winget install -e --id Microsoft.VisualStudio.2022.BuildToolsAfter installation, open a new command prompt and verify that msbuild is available:
msbuild -versionThe documentation build requires the Microsoft HTML Help Compiler (hhc.exe).
-
The official Microsoft download page currently links to a non-functional installer.
-
A working installer is available at:
https://www.helpandmanual.com/downloads_mscomp.html
During installation, you may receive a warning indicating that a newer version than 1.3 is already installed. This warning can be safely ignored; the required components will still be installed and the build will succeed.
Invoke MSBuild using the Release configuration:
msbuild /p:Configuration=Release documentation\Cpacs_doc_project.shfbprojVerify that all prerequisites have been completed:
-
Third-party dependencies extracted
-
MSBuild installed
-
Microsoft HTML Help Compiler installed
Run MSBuild for the tool-specific documentation project (example path shown below):
msbuild /p:Configuration=Release documentation\Toolspecific_doc_project.shfbprojAdjust the MSBuild path as necessary to match your local Visual Studio installation.
Once the build completes successfully, the documentation build system is correctly configured.
To generate documentation for your own tool, adapt the project file:
documentation/Toolspecific_doc_project.shfbproj
Modify the configuration parameters as required to reference your tool-specific schema and metadata.