I have a build that has a custom build step that reads a text file out of the repository and writes to the build.version configuration parameter. I'm trying to use that value in an AssemblyInfo patcher like this: %build.version%.%system.build.number%.
The build keeps failing with an error similar to:
error CS0647: Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '.26' is invalid'
After the build runs, I can see in the Parameters tab that build.version is set to the correct value.
Am I doing something wrong here or is there a better way to accomplish this?
UPDATE: I see in the build log now that the AssemblyInfo patcher is running prior to my first build step that sets the value. Is there any way to delay it until after the first build step?