cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

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?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

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-devo...

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

View solution in original post

3 REPLIES 3
Highlighted
Power Apps
Power Apps

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-devo...

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

View solution in original post

Highlighted
Frequent Visitor

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.

Highlighted
Frequent Visitor

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (9,928)