web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Power Platform Build Tools : Set Solution Version

(0) ShareShare
ReportReport
Posted on by 901

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)->

pastedimage1647276349317v1.png

2. Add task Power Platform Set Solution Version and put some parameters setting ->

pastedimage1647276464745v2.png

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.

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans