I'm trying to post-process the documentation XML file as a post-build XSLT transformation (using the new XSLTransformation step), but the build fails with error Unable to execute transformation. Could not find file 'C:\...\documentation.XML'
. The documentation XML file shows up fine on disk after the build is complete, but during the AfterBuild step is simply not there: <Exec Command="dir $(ProjectDir)$(DocumentationFile)"/>
does not find the file, neither does <Exec Command="$(ProjectDir)$(DocumentationFile)"/>
.
The XslTransformation step is run from a task named AfterBuild
and declared as depending of the Compile
step. Apprently I'm missing something in the way this task is declared so that it does not run before the documentation XML file is complete, but I can't figure out what.