Conditional Versioning

I am also trying to use the supplied solution.

I have IsDevelopment set to True scoped to Development channel. I have IsDevelopment set to False scoped to Test channel. I have also tried with 1 and 0.

My variable template is:

#{if IsDevelopment == True}1.0.0.1#{/if}
#{unless}2.0.0.1#{/unless}

My release version comes out at 1.0.0.12.0.0.1. I guess this is due to both being true - but the create release page doesn’t use only the variable scope of the selected channel.

I have given up on this one. I am using #{Octopus.Version.LastMajor}.#{Octopus.Version.LastMinor}.#{Octopus.Version.LastBuild}.#{Octopus.Version.NextRevision} and manually incrementing my release channel. The development channel then uses NextRevision to do builds until the next release.