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
/p:OctoPackPackageVersion=$(Build.BuildNumber)
/p:OctoPackPackageVersion=$(build.number)
/p:OctoPackPackageVersion=1.i
/p:OctoPackPackageVersion=$(TF_BUILD_BUILDNUMBER)
/p:OctoPackPackageVersion=$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)
and many other variations
Any help in getting this resolved is highly appreciated.
Hi,
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,
Daniel
Thanks, it worked, but with a slight change. I had to add some string before it to work.
/p:OctoPackPackageVersion=1.0.$(Build.BuildNumber).
Hi,
Glad you figured it out! That explains it, because we do require basic SemVer.
Thanks,
Daniel