If I add the AssemblyInfo action into the same stage as the Visual Studio Action (Configuration=Release), the Assembly is correctly versioned. That was unexpected. Obviously there is some isolation of source code between stages. Might need to add that “stage isolation” to the documentation if that’s the desired behaviour within Continua. In my example I copied the AssemblyInfo Updater Action from the build stage into the package stage.
Changes made to source code during a stage are not committed back to the repository, so if the next stage runs on a different agent it will not see those changes… (or if it has it’s own repo rules then the changes would be overwritten), so you need to copy the changed files back to the server using the workspace rules, and then copy the files to the next agent using the next stage’s workspace rules. The workspace sync rules are applied after the repository rules to ensure this can be done.