Building with MSBUILD
Document! X includes a custom MSBUILD task which can be used to integrate the build of documentation with your MSBUILD-based build process.
MSBUILD Task Assembly Location
The Contiem Connect MSBUILD Task assembly file is named Contiem. DocumentX.Build.dll and can be found in a \bin sub-directory below the Document! X installation path. The default bin path is C:\Program Files\Innovasys\DocumentX2024\bin.
The MSBUILD Task Assembly requires other Document! X assemblies and should not be moved from the installation path.
Builds executed using the MSBUILD task require a full installation of Document! X. If you are integrating with a build on a build server, you must install a licensed copy of Document! X on the build server.
Integrating the Custom MSBUILD Task
To integrate the build of a Document! X project with your MSBUILD process, follow these steps:
- Open your MSBUILD project file (e.g. .proj, .vbproj, .csproj file) in Notepad.
The project file is actually an MSBUILD XML file that you will edit to add Document! X to the build tasks. For more information on MSBUILD, see the MSBUILD documentation on MSDN. - Add references to the MSBUILD task assembly in the file, as below:
- Replace [BinPath] in the sample above with the location of the assembly containing the MSBUILD task, outlined in the "MSBUILD Task Assembly Location" section earlier in this topic.
- Replace the ProjectFileName attribute value in the sample above with the location of your Contiem Connect project file - either a full path and filename or a path relative to the MSBUILD project file.
- If required, you can also specify a BuildConfigurationName attribute to identify a specific saved Build Configuration to build. If no BuildConfigurationName is specified, the first Build Profile is built. Example of Task XML specifying a Build Configuration:
<Contiem.DocumentX.Build.ProjectBuildTask ProjectFileName="documentation\documentation.dxp" BuildConfigurationName="MyBuildConfigurationName"/>