Assembly version based on Product version instead of File version

Topics: Developer Forum, User Forum
Apr 6, 2014 at 9:54 AM
Hello,
Im using SHFB to generate help files for my assemblies. However the assembly version displayed in the help is based on the Product version instead of the File version. Is there a way to change that behavior so that the displayed assembly version would be based on the File version of the .dll`s?
Coordinator
Apr 6, 2014 at 7:29 PM
The document model transformations looks for AssemblyInformationalVersionAttribute first. If found, they use that value. If not found, they look for AssemblyFileVersionAttribute, and, if found, use the assembly version followed by the file version in parentheses. If not found, it uses the assembly version alone. You can alter the ApplyVSDocModel.xsl transformation suit your needs by changing the addLibraryAssemblyData template. You'll find the conditions to change there. The transformation is in the .\ProductionTransforms folder under the Sandcastle Help File Builder installation folder.

Eric
Apr 16, 2014 at 6:56 AM
Modifying the addLibraryAssemblyData template fixed the issue. Thank you for the information.