cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

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.

View solution in original post

8 REPLIES 8
Highlighted
Frequent Visitor

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. 

Highlighted
Power Apps
Power Apps

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.

Highlighted
Microsoft
Microsoft

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

Highlighted
New Member

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

Hi @iwaldman  please find attached the files

Highlighted
New Member

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

Highlighted
Microsoft
Microsoft

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.

View solution in original post

Highlighted
New Member

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. 

Highlighted
Microsoft
Microsoft

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

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Users online (8,445)