cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Updated PCF Tooling version is now available (August 2019)!

The updated version of PCF tooling (PowerApps CLI) is now available! Today we released new capabilities for several of our most popular feature requests in the PowerApps CLI. We are now providing PowerApps component framework developers the ability to not only see changes in the test harness as they are made but to also push components directly into an org using the CLI. These innovations will greatly speed up the development inner loop!

 

The push capability will make you more efficient because it bypasses the custom component versioning requirements and does not require you to build your solution in order to import into your development environment. The watch capability removes the need to reload your test harness after every change is made.

If you have not yet updated your PowerApps CLI to the latest version, this release is definitely the time to do it!  To get all the latest capabilities, please install the latest MSI by following the tooling documentation .

Once you have the latest version of the CLI you can always refer to the tooling documentation or get quickly started using the steps outlined below.

Enable Watch Mode in the Test Harness

The test harness can be set up to watch and recompile the source code of your PowerApps Component Framework projects. To enable watch mode, start the test harness using the command “npm start watch” from the command prompt. The watch capability will detect changes in index.ts, ControlManifest.Input.xml, other bundled .ts files, and all resources declared in the manifest, then rebuild your component and automatically update the test harness without having to restart it.

Push Component to your Org

To start pushing your custom component directly into an environment, there is a quick but essential step of setting up your authentication profile in the CLI. This setup is a one-time effort where your profile can be saved for future connections. Here is how to do it:

To start with, please create your authentication profile using the command:

"pac auth create --url"

Now that you have an authentication profile, you can start pushing your updated component by following two simple steps:

1. In your VS command prompt, go to the root directory of your custom component project
2. Run the command "pac pcf push --publisher-prefix"

Let us know what you think!

We hope you enjoy the newly added features and are excited to hear what you thinks about them. If you have questions or other feedback, please let us know on the PowerApps component framework forum. We look forward to hearing from you!

43 REPLIES 43

Hi @cakhaing ,

In addition to what @devendramsft  suggests, can you also try to located the following log file? .\WhereYouInstallPac\pac\CLI\logs\pac-log.txt

 

If so can you please attach the log? Thanks!

pac-log.txt

 

2019-09-06 00:18:30.3374|INFO|bolt.cli.Worker|StartExecutingVerb
2019-09-06 00:18:30.3846|INFO|bolt.cli.Worker|Verbs: ["pcf","push"]
2019-09-06 00:18:30.3846|INFO|bolt.cli.Worker|ProductVersion: 0.4.3
2019-09-06 00:18:30.5704|INFO|bolt.module.auth.profiles.AuthProfilesManager|GetCurrent(): For Kind 'CDS'.
2019-09-06 00:18:30.7085|INFO|bolt.module.auth.store.AuthTokenStore|AcquireTokenSilentAsync(): Acquiring token for https://dynamicscode.crm6.dynamics.com
2019-09-06 00:18:32.9663|INFO|bolt.module.auth.store.AuthTokenStore|AcquireTokenSilentAsync(): Successfully acquired a token
2019-09-06 00:18:34.3419|INFO|bolt.module.cds.client.CdsClient|Connected to CDS Org
2019-09-06 00:18:34.3419|INFO|bolt.cli.Verb|Executing solution init --pn PowerAppsToolsPublisher_dyco --pp dyco.
2019-09-06 00:18:34.8762|INFO|bolt.cli.Worker|StartExecutingVerb
2019-09-06 00:18:34.9072|INFO|bolt.cli.Worker|Verbs: ["solution","init"]
2019-09-06 00:18:34.9072|INFO|bolt.cli.Worker|ProductVersion: 0.4.3
2019-09-06 00:18:34.9605|INFO|bolt.cli.Verb|CDS solution project with name 'PowerAppsTools_dyco' created successfully in current directory.
2019-09-06 00:18:34.9765|INFO|bolt.cli.Verb|CDS solution files were successfully created for this project in the sub-directory Other, using solution name PowerAppsTools_dyco, publisher name PowerAppsToolsPublisher_dyco, and customization prefix dyco.
2019-09-06 00:18:34.9765|INFO|bolt.cli.Verb|Please verify the publisher information and solution name found in the Solution.xml file.
2019-09-06 00:18:34.9919|INFO|bolt.cli.Worker|EndExecutingVerb
2019-09-06 00:18:34.9919|INFO|bolt.cli.Worker|Success: True
2019-09-06 00:18:35.0078|INFO|bolt.cli.Worker|Execution Time(ms): 60
2019-09-06 00:18:35.2303|INFO|bolt.cli.Verb|Executing solution add-reference --path C:\Tools\CustomControl\PCF-ReactDemo.
2019-09-06 00:18:35.7521|INFO|bolt.cli.Worker|StartExecutingVerb
2019-09-06 00:18:35.7830|INFO|bolt.cli.Worker|Verbs: ["solution","add-reference"]
2019-09-06 00:18:35.7997|INFO|bolt.cli.Worker|ProductVersion: 0.4.3
2019-09-06 00:18:35.8368|INFO|bolt.cli.Verb|Project reference successfully added to CDS solution project.
2019-09-06 00:18:35.8534|INFO|bolt.cli.Worker|EndExecutingVerb
2019-09-06 00:18:35.8534|INFO|bolt.cli.Worker|Success: True
2019-09-06 00:18:35.8534|INFO|bolt.cli.Worker|Execution Time(ms): 41
2019-09-06 00:18:35.9691|INFO|bolt.cli.Verb|Temporary solution wrapper created at C:\Tools\CustomControl\PCF-ReactDemo\obj\PowerAppsTools_dyco
2019-09-06 00:18:35.9837|INFO|bolt.cli.Verb|File dotnet.exe not found.; looking for msbuild.exe
2019-09-06 00:18:35.9837|INFO|bolt.cli.Verb|Found msbuild.exe C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe; building solution using msbuild.exe.

 

Here is my screen recording. https://www.youtube.com/watch?v=4ylvho7jI_k

Please skip from 2:00 to 2:40 where I restarted my VM.

 

Can you please check whether you have v4.0 folder under C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework. If you have it, can you please rename it to something else and re-run 'pac pcf push' command?

 

If it is still working, can you please check line 57 in C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets whether it is referencing to v4.6.2?

 

In my case, I temporarily solve the issue either

1. by cloning v4.6.2 folder under C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework to v4.0

OR

2. by changing TargerFrameworkVersion from v4.0 to v4.6.2 in C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets

 

As you can see in my screen recording, I can successfully build using 'msbuild' only with .net v4.6.2.

Shouldn't 'pac pcf push' work with v4.6.2 as well?

Love the push feature great time saver and been using since a week, only issue(feedback)  I am facing is that after one solution push I have wait few minutes for next push, It gives error :

"The process cannot access the file '.path\obj\PowerAppsTools_ikl' because it is being used by another process. "

@Sheb , We are aware of this issue and it has been fixed. Unfortunately you will have to wait until the next update which will take place at the end of September. Sorry for the inconvenience.

New issue:

I built a PCF and packaged with both solution types (managed.zip and unmanaged.zip). 

Import the unmanaged into a DEV instance, then exported as managed solution (exported_managed.zip) to get ready to import into downstream instances (QA/UAT/PRD). 

When I unpack the managed.zip and exported_managed.zip, I expect them to be similar, and both should be able to be imported into new environments. 

However that's not the case. It looks like the PCF build produced zip added publisher prefix (which is new in Aug tooling) to the component name, but the export one does not, causing import mismatch and fail. Please see the file compare between the two solution.xml. 

So will the tooling stop adding prefix, or the CRM export will add prefix in the future?

 

 

 

We appologize for the issue you are experiencing! We are aware of this behavior and are working on a fix that will address the export issue. The prefix is there to ensure uniqueness of each component thus its essential that it is added.

@peterv333 Thanks. So we'll just use the built solution file for now, until the export process can add prefix. 

Hi All
i have a question...
But .net framework 4.6.2 is mandatory? Is not possible to use 4.7.2, because in my machine win20 + visual studio 2017 + .net framework 4.7.2 I receive this error 
"  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targe
ts(1179,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.2" were not found. To res
olve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of th
e framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Glob
al Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly
 targeted for the framework you intend. [C:\Project\PCF\LinearComponent\Solution\Solution.cdsproj]"
 
Thanks
Marco

I found this article https://docs.microsoft.com/en-us/powerapps/developer/component-framework/get-powerapps-cli I think that is necessary install .NET Framework 4.6.2 Developer Pack. It is correct? Thk

@peterv333 A new but related issue regarding the export tool not adding prefix:

 

If a Dynamics solution used one of the PCF controls created after the August tooling update (where prefix were added), the exported solution can NOT be imported into a different environment. It gave a vague error of "An error has occurred. Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support"

 

In this case, unlike the PCF solution itself, there is no built tool to create a zip file to use. What we found out is that "customization.xml" in the exported zip file stripped the prefix out, but the "solution.xml" actually kept the prefix. 

The workaround is to adding the prefix back to <customControl formFactor="2" name="prefix_NameSpace.PCFControl"> 
in the customization.xml manually and zip it back. 

 

So looks like a fix is really needed in the export code to accomodate the newly introduced prefix.  

 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,270)