cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
devPCF
Regular Visitor

msbuild hangs at [build] Succeeded for packaging solution, powerapps PCF component

so, i created a solution folder and ran the commands given on powerapps docs:

https://docs.microsoft.com/en-us/learn/modules/build-power-app-component/2-package-code-component

But when i run "msbuild", it gets stuck at the end and no files are generated inside the /bin/Debug folder inside solutions folder. Nothing so far posted or internet here seems to work for my case. I installed the 2019 build tools for visual studio, and gave the path inside the PATH enviorment variable in windows. Tried to run from Visual studio 2017 and also 2019 but everywhere it gets stuck.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @devPCF , 

Have you tried to deactivate the telemetry?

pac telemetry disable

...since I see something related to Application Insights. We also had some issued with the telemetry being blocked.

Another ideas:

1. check if the build of your component succeeds: "npm run build". Maybe is not able to build.

2. We had some issued with the NuGet feed while building, try "msbuild /p:NuGetInteractive="true". We actually need a Nuget.config in the PCF projects, otherwise we cannot build our PCFs

3. try "msbuild /t:build /verbosity:diag", maybe you get more details on the issue.

Hope it helps.

Kind regards,

Diana

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

6 REPLIES 6
rajyraman
MVP

@devPCF - Can you post a screenshot of the terminal output. Aren't there any error messages that say why it isn't building the solution?

After running msbuild command, it just keeps on the "build success" and does not go any further,

devPCF_0-1608022116727.png

 
If I press Ctrl+C , then it cancels and shows this message :

devPCF_1-1608022188642.png

The msbuild /t:restore command runs successfully and gives no issue. But when i run the msbuild command after it, it just stops/hangs at the stage in 1st pic

Also just now, i let the msbuild command run for about 10-15 minutes without pressing Ctrl+C , and this error occured :

devPCF_0-1608027099825.png

 

vrparda
New Member

Are you running msbuild commands in Developer Command Prompt for 20xx if not please also try like that?

devPCF
Regular Visitor

yes , i tried from both inside Visual studio 2017 and also 2019 developer cmd as well as power shell in windows, but its the same issue of hanging at the "[build] Succeeded" step , and no file is generated inside the solution/bin/debug folder

devPCF_0-1608032010038.png

 

 

 

Hi @devPCF , 

Have you tried to deactivate the telemetry?

pac telemetry disable

...since I see something related to Application Insights. We also had some issued with the telemetry being blocked.

Another ideas:

1. check if the build of your component succeeds: "npm run build". Maybe is not able to build.

2. We had some issued with the NuGet feed while building, try "msbuild /p:NuGetInteractive="true". We actually need a Nuget.config in the PCF projects, otherwise we cannot build our PCFs

3. try "msbuild /t:build /verbosity:diag", maybe you get more details on the issue.

Hope it helps.

Kind regards,

Diana

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (933)