cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MridulaSingh
Level: Power Up

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. [DSmiley Tongueowercomponent\powercomponent.pcfprj]

using VS 2017

Did anyone faced this before?

Thanks,

Mridula

1 ACCEPTED SOLUTION

Accepted Solutions
devendramsft
Level: Powered On

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.
8 REPLIES 8
iwaldman
Level: Powered On

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. 

PowerApps Staff Craig-MSFT
PowerApps Staff

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.

devendramsft
Level: Powered On

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

MridulaSingh
Level: Power Up

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

Hi @iwaldman  please find attached the files

MridulaSingh
Level: Power Up

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

devendramsft
Level: Powered On

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.
MridulaSingh
Level: Power Up

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

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

devendramsft
Level: Powered On

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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 45 members 4,258 guests
Please welcome our newest community members: