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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Solution Version Numbe...
Power Apps
Unanswered

Solution Version Numbering with Azure DevOps

(0) ShareShare
ReportReport
Posted on by 763 Super User 2024 Season 1

By default, when manually exporting a solution from an environment it will auto increment the end of the version number.  So, if you are starting with 1.0.0.0, an export will propose, or auto inclement that to 1.0.0.1.

Our versioning is a little different, we increment the 1.0.0.0 to 1.0.1.0.

 

So, my question is, how do I fetch the current version number during a build process and increment the number and set that version number in the solution?

 

I have not found any of the content on the internet helpful in solving this problem.

 

Thanks all!

I have the same question (0)
  • eleung83 Profile Picture
    232 on at

    By "Build process" I'm assuming you would be referring to something like ADO pipelines and releases?

     

    If that is correct then there's 2 tasks that you can use to both get the current solution details, and also to set the solution version of any solution:

     

    Task to get the details of a solution: 
    https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks (Look at the "Get Solution (preview)" task)

     

    Task to set the version of a solution:
    https://docs.microsoft.com/en-us/power-platform/alm/devops-build-tool-tasks (Look at the Power Platform Set Solution Version task)

     

  • sperry1625 Profile Picture
    763 Super User 2024 Season 1 on at

    This is only a partial solution.  I can get the version number, but how do I manipulate the version number before I set it. I would assume I would need to do substring manipulations. I do not know how, or where, I would do that.

     

    Also, is there a way to put conditionals in a release pipeline? Ex. If I pull a release, and its version number is the same as what is already deployed, stop the pipeline.

     

    Thank you.

  • eleung83 Profile Picture
    232 on at

    You can use powershell scripts to do whatever you want with the values that get extracted as part of those tasks. There's already a powershell task you can add which can execute your powershell scripts inline or execute powershell files. And you should be able to access the pipeline variables with the powershell script.

     

    Essentially the Powershell script allows you do anything with the pipeline variables and do whatever validation/manipulation/error blocking functionality that you need to do, but there is a bit of a learning curve (googling) with powershell as it's pretty much a black box. The nice thing is that it does allow you to mix C# code statements inline with the powershell script

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard