Defining custom version number in OctoPackPackageVersion

I am trying to use custom version number in the OctoPackPackageVersion MS Build option in “Visual Studio Build MSBuild Argument”

I have tried the following without any luck


and many other variations

Any help in getting this resolved is highly appreciated.


Thanks for getting in touch! The first variable you have tried was correct, so it may be a problem with the variable syntax itself.
Are you able to send the build logs when you use the following variable: /p:OctoPackPackageVersion=$(Build.BuildNumber)

This should help us figure out the problem.


Thanks, it worked, but with a slight change. I had to add some string before it to work.



Glad you figured it out! That explains it, because we do require basic SemVer.