cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JohnWatson01
Level: Power Up

Unable to push solution

Hi i am getting  Error Failed to locate dotnet.exe or msbuild.exe to build the temporary solution when running pac pcf  push... ,

After this error I again tried to build solution using msbuild but getting following error 

 

C:\Users\surendar\.nuget\packages\microsoft.powerapps.msbuild.solution\0.4.3\build\Microsoft.PowerApps.MSBuild.Solution
.targets(132,5): error : Control directory with publisher name E:\SurendarWork\PcfControls\TestControl\FieldControls\La
testCli\FrameworkExplore\FrameworkExplore_Solution\obj\Debug\Controls\sg_FieldControl.FrameworkTestClass already exists
[E:\SurendarWork\PcfControls\TestControl\FieldControls\LatestCli\FrameworkExplore\FrameworkExplore_Solution\FrameworkE
xplore_Solution.cdsproj]

1 ACCEPTED SOLUTION

Accepted Solutions
devendramsft
Level: Powered On

Re: Unable to push solution

For this error "Error Failed to locate dotnet.exe or msbuild.exe to build the temporary solution when running pac pcf  push... "

Can you ensure that you either have dotnet cli installed on your machine or you are running from a Visual Studio 2017/2019 Developer Command Prompt.

 

For this Error 

"C:\Users\surendar\.nuget\packages\microsoft.powerapps.msbuild.solution\0.4.3\build\Microsoft.PowerApps.MSBuild.Solution
.targets(132,5): error : Control directory with publisher name E:\SurendarWork\PcfControls\TestControl\FieldControls\La
testCli\FrameworkExplore\FrameworkExplore_Solution\obj\Debug\Controls\sg_FieldControl.FrameworkTestClass already exists
[E:\SurendarWork\PcfControls\TestControl\FieldControls\LatestCli\FrameworkExplore\FrameworkExplore_Solution\FrameworkE
xplore_Solution.cdsproj]"

 

This is a bug fix that is scheduled for next release with this workaround "msbuild /t:rebuild" instead of "msbuild" temporarily. Can you please try this ?

View solution in original post

2 REPLIES 2
devendramsft
Level: Powered On

Re: Unable to push solution

For this error "Error Failed to locate dotnet.exe or msbuild.exe to build the temporary solution when running pac pcf  push... "

Can you ensure that you either have dotnet cli installed on your machine or you are running from a Visual Studio 2017/2019 Developer Command Prompt.

 

For this Error 

"C:\Users\surendar\.nuget\packages\microsoft.powerapps.msbuild.solution\0.4.3\build\Microsoft.PowerApps.MSBuild.Solution
.targets(132,5): error : Control directory with publisher name E:\SurendarWork\PcfControls\TestControl\FieldControls\La
testCli\FrameworkExplore\FrameworkExplore_Solution\obj\Debug\Controls\sg_FieldControl.FrameworkTestClass already exists
[E:\SurendarWork\PcfControls\TestControl\FieldControls\LatestCli\FrameworkExplore\FrameworkExplore_Solution\FrameworkE
xplore_Solution.cdsproj]"

 

This is a bug fix that is scheduled for next release with this workaround "msbuild /t:rebuild" instead of "msbuild" temporarily. Can you please try this ?

View solution in original post

JohnWatson01
Level: Power Up

Re: Unable to push solution

Thanks both issue's are solved

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Users online (5,083)