Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Is there a way to set the control version when using Azure DevOps build pipeline?

(1) ShareShare
ReportReport
Posted on by

Hi,

 

We are using a Azure DevOps build pipeline to build the control and generate the solution file. The ControlManifest.Input.xml has a version attribute for the control. Is there a way to auto update this? 

I would like to do the following:

<control namespace="MyComponent" constructor="MyComponent" version="1.0.$(BuildID)" display-name-key="Mycomponent" description-key="My Fancy Component" control-type="standard">

 

And have $(BuildID) to re placed with the current buildid. 


Any thoughts on this?

 

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Is there a way to set the control version when using Azure DevOps build pipeline?

    thanks @HansG Hans for testing the solution provided by @Mikkelsen2000 . It works nicely.

  • Community Power Platform Member Profile Picture
    on at
    Re: Is there a way to set the control version when using Azure DevOps build pipeline?

    We made it work with XML Poke. Didn't see an easy way to do it with the file transform.

  • Verified answer
    Mikkelsen2000 Profile Picture
    on at
    Re: Is there a way to set the control version when using Azure DevOps build pipeline?

    Hi Pieter,

     

    One way to do this is via an msbuild target in your .cdfproj file with an XmlPoke msbuild task: https://docs.microsoft.com/en-us/visualstudio/msbuild/xmlpoke-task?view=vs-2019 and pass in $(BuildId) when you build the solution as part of the pipeline

     

    There’s also a builtin VSTS task “File Transform” https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/file-transform?view=azure-devops

    Happy to setup a call to talk/walk through this with you if you'd like?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard