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

PCF control solution build in DevOps

Hi,

 

I'm trying to figure out the correct way to build a control and then generate a solution from the build in DevOps. So far I am able to build the control but I'm having problems with initializing the solution and generating the the zip. Do I need to include PowerApps CLI in my build process for it to work?

 

Regards,

Thordur

 

1 ACCEPTED SOLUTION

Accepted Solutions
rajyraman Kudo Collector
Kudo Collector

Re: PCF control solution build in DevOps

@thordurg- Are you using Azure DevOps? To produce the solution artifacts, you are simply using MSBuild to build the cdsproj. To get the cdproj and the associated files used to build the PCF Solution, you would use the "pac solution init" and "pac solution add-reference" commands. Once these files are in the repo, you would run MSBuild task in the build pipeline to produce the artifacts. You don't need Power Apps CLI to build the artifacts, provided you have the solution files committed on your repo.

View solution in original post

4 REPLIES 4

Re: PCF control solution build in DevOps

Take a look at this example of using github actions https://github.com/rajyraman/pcf-actions-starter

What I do is to use npm to build the bundle.js and then simply copy the output into the solution source files that then are packaged using the solution packager.

rajyraman Kudo Collector
Kudo Collector

Re: PCF control solution build in DevOps

@thordurg- Are you using Azure DevOps? To produce the solution artifacts, you are simply using MSBuild to build the cdsproj. To get the cdproj and the associated files used to build the PCF Solution, you would use the "pac solution init" and "pac solution add-reference" commands. Once these files are in the repo, you would run MSBuild task in the build pipeline to produce the artifacts. You don't need Power Apps CLI to build the artifacts, provided you have the solution files committed on your repo.

View solution in original post

thordurg
Frequent Visitor

Re: PCF control solution build in DevOps

I was trying to create the solution/cdsproj in DevOps which didn't work out. So, I initialized the solution and checked it in and the build went on smooth from there. Thanks, @rajyraman and @ScottDurow  for your input.

ryanspain
Frequent Visitor

Re: PCF control solution build in DevOps

@thordurg, a little late to the post, but I wrote a guide on building a deploying a PCF control using Azure DevOps pipelines.

https://ryanspain.net/posts/pcf-azure-devops-pipelines/

It's super easy seeing as the cdsproj file can be targetted by MSBuild.

I hope it helps in what you were trying to do!

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Users online (6,226)