cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Kingpin
Kudo Kingpin

Production PCF bundling in unmanaged solution?

We need to include a PCF component in a bigger suite. We don't want to have a dependency on the PCF solution, so I need to make an unmanaged Solution for my PCF, in order to make it possible to include it in the suite solution.

When I build the solution unmanaged using "msbuild" I get a zip size of 214KB.

The solution build  using "msbuild /p:configuration=Release" it's only 47KB, but I can use that only for managed solutions.

That can make a big difference in the performance.

Is there a way to generate an unmanaged solution with production bundling (without having to modify the generated zip manually)?

Best regards,

Diana

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: Production PCF bundling in unmanaged solution?

@DianaBirkelbach ,

 

Modifying the .cdsproj like below should output the managed and unmanaged zip files during the msbuild process.

 

Create Both Solution TypesCreate Both Solution Types

 

When i look at the files sizes in the bin\Release folder they are the same.

 

-Rick

View solution in original post

6 REPLIES 6
Highlighted
Resolver I
Resolver I

Re: Production PCF bundling in unmanaged solution?

@DianaBirkelbach ,

 

Modifying the .cdsproj like below should output the managed and unmanaged zip files during the msbuild process.

 

Create Both Solution TypesCreate Both Solution Types

 

When i look at the files sizes in the bin\Release folder they are the same.

 

-Rick

View solution in original post

Highlighted

Re: Production PCF bundling in unmanaged solution?

I always build using Release mode and output as an Unmanaged solution. This way you can import your component ready for export via either the same solution - or another larger solution that includes multiple components.

 

The Development build is then used only for local debug. I don't see any reason to import your component to CDS as a development build.

Highlighted
Kudo Kingpin
Kudo Kingpin

Re: Production PCF bundling in unmanaged solution?

Thank you Rick!

I must admit that I couldn't understand the documentation right. I was also confused because the default cdsproj configuration delivers unmanaged for "msbuild", and managed for "msbuild /p:configuration=Release", both solutions having the same name (no "managed" in the name). 

In case somebody else has the same problem, I've write a blog about this: https://dianabirkelbach.wordpress.com/2020/04/28/pcf-solution-packaging-unmanaged-for-production-rel...

Thanks again @RAWilson  and @ScottDurow  for your help.

Best regards,

Diana

Highlighted
Frequent Visitor

Re: Production PCF bundling in unmanaged solution?

@ScottDurow @DianaBirkelbach 

How do we debug our controls in development environment if we build the solution in release mode.

Highlighted
Helper II
Helper II

Re: Production PCF bundling in unmanaged solution?

@ScottDurow @DianaBirkelbach 

How do we debug our controls in development environment if we build the solution in release mode.

Highlighted

Re: Production PCF bundling in unmanaged solution?

You can use Fiddler to redirect the loading of the bundle.js to your local version that is build using npm start watch!

 

Hope this helps

Helpful resources

Announcements
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (8,237)