
Hello guys,
I'm just learning Power Platform deployment using DevOps, a question, when using Power Platform Build Tools, in one of its action which Power Platform Set Solution Version, I'm hitting error.
The error is ""##[errorThe version is in an invalid format. Version: 1.1.$(Version.Revision)"
What more important for me also is actually I want to understand the connections between Azure pipelines using YAML and using Classic visual.
While I have this kind of YAML script :
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
variables:
Version.MajorMinor: 1.0
Version.Revision: $[counter(variables['Version.MajorMinor'], 0)]
VersionNumber: $(Version.MajorMinor).$(Version.Revision)
SolutionName: 'MySolutionName'
PowerAppsSPN: 'MySPN
name: $(Version.MajorMinor).$(Version.Revision)
stages:
- stage: Build
jobs:
- task: PowerPlatformSetSolutionVersion@0
displayName: 'Set solution version'
inputs:
authenticationType: 'PowerPlatformSPN'
PowerPlatformSPN: '$(PowerAppsSPN)'
SolutionName: '$(SolutionName)'
SolutionVersionNumber: '$(VersionNumber)'
And then I redo it in my pipeline but using Classic visual, so here is what I did as I tried to make it the same as what it is says in YAML :
1. Create some variables for the version number (highlighted)->
2. Add task Power Platform Set Solution Version and put some parameters setting ->
Now I'm wondering whether I can do that way ? and is there any missed ? since like mentioned, it hit error at this step while run the pipeline.
Hope someone here can help, cause I tried to google, looking at various YouTube, see Microsoft documentation, it makes me confuse more.
Thanks in advance.