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 / PCF: Error while using...
Power Apps
Answered

PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

(0) ShareShare
ReportReport
Posted on by 11

PCF Hello All,

I am trying my hands on PCF control and while generating zip files by using command msbuild, I am getting below error.

Error- The target "CreateManifestResourceNames" does not exist in the project. [D:powercomponent\powercomponent.pcfprj]

using VS 2017

Did anyone faced this before?

Thanks,

Mridula

I have the same question (0)
  • iwaldman Profile Picture
    159 on at

    Hard to say without having access to your project. However, I would start by reviewing your cdsproj, pcfproj and ControlManifest.Input.xml files and ensure they are correct. 

  • Craig-MSFT Profile Picture
    Microsoft Employee on at

    Mridula,

     

    Are you running msbuild from a "Developer Command Prompt for VS 2017"? If not, please try this. When you run this command prompt, it will set things up so that msbuild can find its dependencies.

     

    Regards,

    cl.

  • devendramsft Profile Picture
    Microsoft Employee on at

    This error occurs when the project has not been restored first. Please run this from a "Developer command prompt for VS 2017"

    a) msbuild /t:restore 

     

    then run msbuild.

     

    ~Dev

  • Mridula Profile Picture
    11 on at

    Hi @iwaldman  please find attached the files

    ControlManifest.Input.PNG
    PCFProj.PNG
    cdsProj.PNG
  • Mridula Profile Picture
    11 on at

    @Craig-MSFT  @devendramsft  I am trying using Developer Command Prompt for VS 2017 and restored it as well. Please find attached the screenshot

    Error.PNG
  • Verified answer
    devendramsft Profile Picture
    Microsoft Employee on at
    Hi

    Please try this.
    a) Go to pcf project folder from cmd line & run
    msbuild /t:restore
    b) Go to cds project folder from cmd line & run
    msbuild /t:restore
    c) On cds project folder, run
    msbuild

    Note: If you have added, pcfproj as add-reference to cdsproj, step 3 would build both of them & create a solution contaning controls.

    Hope this helps.
  • Mridula Profile Picture
    11 on at

    @devendramsft  Thanks it worked 🙂 . Can you help me with the reference creation between cdsproj and pcfproj. 

  • devendramsft Profile Picture
    Microsoft Employee on at
    Hi Mridula

    From the logs you sent last time, it appeared that you already had a project reference from cdsproj to pcfproj.

    You can use PowerApps CLI to create a reference if you don't have one.
    1. Go to the folder where your solution project (cdsproj) from cmd line.
    2. Run
    pac solution add-reference --<path of your PowerApps component framework project on disk>

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/import-custom-controls
  • Sanketkumar Profile Picture
    3 on at

    Really helped

  • Tiffastic Profile Picture
    Microsoft Employee on at

    In the terminal, navigate to Solutions Folder, I run this command:  msbuild /t:build /restore

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard