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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF: Error while using...
Power Apps
Unanswered

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
    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

  • 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

  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard