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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / error MSB4057: The tar...
Power Apps
Unanswered

error MSB4057: The target "GetProjectOutputPath" does not exist i n the project.

(0) ShareShare
ReportReport
Posted on by 6

I am getting this error in the last step of creating the solution package while executing the command 'msbuild'

after the step msbuild /t:restore

 

I have taken an existing code from PCF gallery and trying to use the same.

 

Attached is the screenshot of error 

 

"C:\Folder\DataSet\Solution\Solution.cdsproj" (default target) (1) ->
(ResolveAssemblyReferences target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targe
ts(2110,5): warning MSB3245: Could not resolve this reference. Expected a file but got directory "C:\Folder\DataSet\Con
trol\out\controls\". If this reference is required by your code, you may get compilation errors. [C:\Folder\DataSet\Sol
ution\Solution.cdsproj]


"C:\Folder\DataSet\Solution\Solution.cdsproj" (default target) (1) ->
"C:\Folder\DataSet\Control\PCF-DataSetDemo.pcfproj" (GetProjectOutputPath target) (2:4) ->
C:\Folder\DataSet\Control\PCF-DataSetDemo.pcfproj : error MSB4057: The target "GetProjectOutputPath" does not exist i
n the project.

1 Warning(s)
1 Error(s)

"

error.JPG
I have the same question (0)
  • devendramsft Profile Picture
    Microsoft Employee on at
    Can you try a restore on pcfproj?
    1. Go to directory containing pcfproj.
    2. msbuild /t:restore
    3. Copy restore msbuild logs.
    4. Go to directory contaning cdsproj & run msbuild.
    5. If this failed again, paste logs from step 3 & step 4 on this post, for us to take a detailed look.

    I am suspecting you have an older version of pcf msbuild package ( targets/props) but we can confirm with the logs.
  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    hi @Sureshkala , were you able to resolve this ? If not can you please share the details as per instructions from @devendramsft above ?

    hemant 

  • Suresh Bharadwaj Kala Profile Picture
    6 on at

    Changing the configuration to this line has resolved the issue

    PackageReference Include="Microsoft.PowerApps.MSBuild.Solution" Version="0.*"

     

    before resolving it was like

    PackageReference Include="Microsoft.PowerApps.MSBuild.Solution" Version="0.1.*"

  • Suresh Bharadwaj Kala Profile Picture
    6 on at

    Hi Hemath,

     

    Yes I was able to resolve this. Thanks for your follow up.

  • devendramsft Profile Picture
    Microsoft Employee on at

    Yes. 

     

    This seems like the right mitigation. Apparently, you have controls project (pcfproj) created from an older verison of CLI where we had 0.1* in our templates. cdsproj would have been created from a later version of CLI where we corrected it to 0.* in our templates. Now, cdsproj was getting build tools of version 0.3.* where pcfproj was still stuck at 0.1.*. 

     

    We would add this to our doucmentation in trouble shooting steps & document breaking changes in build tools more descriptively. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard