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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF Solution generatio...
Power Apps
Unanswered

PCF Solution generation verry slow

(0) ShareShare
ReportReport
Posted on by 3,072 Most Valuable Professional

To create the solution containing the PCF component, we need to create the solution project and add the component to the solution. Then we need to call "msbuild /t:restore" and then "msbuild". No problem until here.

Later on, when I want to create a new version of the component, I increment the version in the manifest, and the I need to call the "msbuild" command again, right?

 

My problem is: calling the msbuild takes about "3:11" Minutes every time. The bundling of the js file is fast, but then it takes 3 minutes where I see no update on the screen.

I take a coffee, I come back, and it's still generating. Cat Frustrated  

 

 I wonder if I am the only one with this problem. Maybe the VS2019 installed on my computer could cause some issues? Or I just need a new laptop Cat Wink 

 

Is there a way to speed up  the generation of the solution update? Is it ok to modify the content of the solution.zip just replacing the js webresource? Or maybe there is another way?

 

Best regards,

Diana

I have the same question (0)
  • devendramsft Profile Picture
    Microsoft Employee on at
    Msbuild /t:restore is needed 1 time when you create the pcf or solution project. After that you should only do Msbuild (without /t:restore), to do build. After modifying the version in pcf, you need to run msbuild on solution project, so that it builds the package via project references. It should not take more than couple of seconds to build this. It's not recommended to modify the packaged zip.
    You can try few things.
    a) record the time for msbuild /t:restore multiple times
    b) record the time for msbuild multiple times & see if it's consistently 3 minutes.
    c) try to limit the number of nuget sources that you have in your NuGet.config on your machines.
    c) try it on a different machine if this doesn't resolve on restart of machine if there are pending updates.
  • Craig-MSFT Profile Picture
    on at

    To Devendra's third point, can you please run 'nuget source list' on a command-line (where nuget is in the path) and let us know how many sources you have registered on that machine?

     

    You can also try running 'msbuild /t:build /verbosity:diag' to see if you can tell where the time is being spent. If you are ok sending us these logs, that would be helpful as well.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Thanks a lot. Yes, it's about msbuild (without restore), and it takes always more than 3 minutes. Good point about the nuget.config. Thanks 

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Thanks a lot. Smiley Happy

    Today I'm using it for the first time in HomeOffice, and it turns out that the problem occurs only when I'm in the office.

    I actually have another nuget feed configured (company internal). I'll investigate the issue (using the "verbosity") next week when I'm in the office again, since in homeoffice the msbuild takes only 12 seconds (yay) 🙂 

    Best regards,

    Diana

     

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    @Craig-MSFT  Hi, I have the following packages:

    1. "nuget.org":   https://api.nuget.org/v3/index.json,

    3. an company internal feed, and

    3. "Microsoft Visual Studio Offline Packages"  

    I've tried to delete the company internal feed, but it is takes still more than 3 minutes when I'm in the office.

    If I try to stop the msbuild task, it seems to be executing the "Exec" task, showing me (sorry for the german words, but you'll get the idea) 

    <..>.nuget\packages\microsoft.powerapps.msbuild.pcf\0.2.59\build\Microsoft.PowerApps.MSBuild.Pcf.targets(22
    ,3): warning MSB4220: Warten auf Abbruch der aktuell ausgeführten Aufgabe "Exec".

    Executing the msbuild using the /verbosity:diag I get the conclusion:

    Leistungszusammenfassung fr das Ziel:
     0 ms _GetProjectJsonPath 2 Aufrufe
     0 ms CollectPackageReferences 2 Aufrufe
     1 ms EnableIntermediateOutputPathMismatchWarning 2 Aufrufe
     1 ms _GetRestoreProjectStyle 2 Aufrufe
     19 ms MutateCdsSolutionAssets 1 Aufrufe
     19 ms _CheckForInvalidConfigurationAndPlatform 2 Aufrufe
     23 ms CopyCdsSolutionContent 1 Aufrufe
     189826 ms Build 2 Aufrufe
     190748 ms CdsResolveReferences 1 Aufrufe
    
    Leistungszusammenfassung fr die Aufgabe:
     2 ms Message 9 Aufrufe
     15 ms MutateCdsSolutionAssets 1 Aufrufe
     34 ms Copy 2 Aufrufe
     189824 ms Exec 2 Aufrufe
     190714 ms MSBuild 1 Aufrufe
    
    Der Buildvorgang wurde erfolgreich ausgefhrt.
     0 Warnung(en)
     0 Fehler
    
    Verstrichene Zeit 00:03:11.45

    Do you have any idea where I can look for the problem? I've tried setting all kinds of proxy settings, but I have no luck.

  • bthompson Profile Picture
    on at

    Years ago on Java projects (so an awful lot of small files) I used to have a problem with the corporate anti-virus kicking in everytime the compiler loaded a file - it resulted in compile times of hours rather than a minute. Could that be the issue?

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    It could be the antivirus, but then I don't understand why it works fast when I'm home. I use the same machine.

    I've also tried all kinds of proxy settings, but nothing helped. Woman Frustrated

  • Pankaj Jadhav Profile Picture
    18 on at

    Dear Diana,

     

    Did you find any solution for this? I am having this problem too and I work behind corporate proxy.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @Pankajj , 

    Not really. In HomeOffice I have no problem... so I have't seen that in a while.

    Sometimes my Build took even more: 8-9 Minutes.

    I suspect the antivirus right now... But I don't really get it, why in HomeOffice I don't have Problems.

    But I also had some problems with the nuget feed, because we have our own feeds, and they were somehow blocking. Now I've added a "NuGet.config" in the project root, where I clear the other feeds, and let only the needed one. I had the feeling that it helped, but I don't remember very well. In case you suspect the same problem, I can send you the content of the nuget.config.

    Best regards,

    Diana

     

     

  • Pankaj Jadhav Profile Picture
    18 on at

    Hello Diana,

     

    Thank you for your reply. I checked my nuget config and it is pretty empty. I think i will just settle with time it takes. Most probably it is our VPN. Because on my personal computer it works very well.

     

    Thank you again

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard