3

I am trying to build a solution out of the custom controller using power apps components framework:

Using

  • Microsoft PowerApps Cli
  • .net framework 4.6.2 development pack
  • .Net SDK 2.2 Core
  • Visual Studio code
  • Node.js

I used this link as a guidenence

However, I am getting this error:

"MSB4057: The target "GetProjectOutputPath" does not exist in the project"

after executing msbuild in the desired location and no zipped solution is created..? Why?

I want to consume it in the D365 later.

Christian Gollhardt
  • 16,510
  • 17
  • 74
  • 111
Marek
  • 41
  • 5

2 Answers2

1

PackageReference Include="Microsoft.PowerApps.MSBuild.Solution" Version="0.1.34" added to cdproj file solved the problem.

Marek
  • 41
  • 5
0

In my case I have added node project (.njsproj) to be part of the .cdsproj and it was failing the same as for you. So, I added a missing target to .njsproj:

<Target Name="GetProjectOutputPath" />

That have solved issue for me. If you would go to targets of the pcf nugget you will see how exactly GetProjectOutputPath is used.

lesyk
  • 3,979
  • 3
  • 25
  • 39