Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Unable to push solution

(0) ShareShare
ReportReport
Posted on by 5

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]

  • JohnWatson01 Profile Picture
    5 on at
    Re: Unable to push solution

    Thanks both issue's are solved

  • Verified answer
    devendramsft Profile Picture
    Microsoft Employee on at
    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 ?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

Overall leaderboard