Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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

  • Tiffastic Profile Picture
    Microsoft Employee on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

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

  • Sanketkumar Profile Picture
    3 on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

    Really helped

  • devendramsft Profile Picture
    Microsoft Employee on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project
    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
  • Mridula Profile Picture
    11 on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

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

  • Verified answer
    devendramsft Profile Picture
    Microsoft Employee on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project
    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
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

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

  • Mridula Profile Picture
    11 on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

    Hi @iwaldman  please find attached the files

  • devendramsft Profile Picture
    Microsoft Employee on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

    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

  • Craig-MSFT Profile Picture
    on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

    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.

  • iwaldman Profile Picture
    159 on at
    Re: PCF: Error while using msbuild -The target "CreateManifestResourceNames" does not exist in the project

    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. 

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 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard