I have a build that has a custom build step that reads a text file from the repository and writes it to the build.version configuration parameter. I am trying to use this value in the AssemblyInfo patch as follows:% build.version%.% System.build.number%.
The line continues to fail with an error similar to:
error CS0647: error while emitting attribute 'System.Reflection.AssemblyVersionAttribute' - 'The specified version'.26' is invalid '
After completing the build, I see on the Options tab that build.version is set to the correct value.
Am I doing something wrong here or is there a better way to do this?
UPDATE: Now I see in the build log that the AssemblyInfo patcher works until my first build step, which sets the value. Is there any way to delay it until the first build step?
source
share