I need to increment the version number of a Power App solution in a (Classic) DevOps Pipeline, i.e. just increment the revision number.
In Pipeline Options i set the Build Number Format to: $(version.MajorMinor).$(version.Patch).$(Rev:r)
In the "Power Platform Set Solution Version" task i set the Solution Version Number to $Build.BuildNumber)
I get this error: ##[error]Invalid number of components in version. Version: $(version.MajorMinor).$(version.Patch).$(Rev:r). this should translate to: 1.0.0.2
There should be 4 components (right?) and it seems to me that i am defining 4
what am i doing wrong?
... as a debugging step.
that would require an extra manual step which would defeat the purpose of automated pipelines
I would guess that it has to do with your concatenation of MajorMinor, but I really have no idea.
I would suggest you just print out the version number before you set it, then read the console output.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1