This project has moved. For the latest updates, please go here.

Integration Build Variables in Sandcastle Doc

Nov 1, 2010 at 10:59 PM

We are trying to integrate the build versions through a build environment variable in to Sandcastle docs. Is there a way the documentation can represent / use build (environment) variable? Is there any processing pipeline available where such variables in the documentation can be de-referenced?

Thanks in advance.


Nov 2, 2010 at 7:22 PM

You should be able to reference it using replacement tag syntax within the property value in the project (for example: FooterText:  Build {@BuildId}).  You may need to pass it into the project by passing it in with the other variables (add /p:BuildId=$(BuildId) to the variables defined when the project is built).  If that doesn't work by itself, add a BuildId variable to the project's UserDefinedProperties property to serve as a placeholder for the passed in value.