powerplatform-vscode icon indicating copy to clipboard operation
powerplatform-vscode copied to clipboard

solution does not build when adding referencing to plugin project using steps in Microsoft How-To

Open mannybellas opened this issue 2 years ago • 1 comments

To reproduce (following the steps here https://learn.microsoft.com/en-us/power-apps/developer/component-framework/import-custom-controls#create-a-plug-in-project-and-add-a-reference-to-it-in-your-solution):

> pac solution init -pn xxx -pp xxx > pac plugin init -o Plugin > pac solution add-reference -p Plugin > msbuild or dotnet build or dotnet msbuild

We get the error:

C:\Users\emman.nuget\packages\microsoft.powerapps.msbuild.solution\1.21.5\build\Microsoft.PowerApps.MSBuild.Solution.targets(102,5): error : Unable to find assembly registration configuration for C:\Users\em man\code\bin\Debug\net462\code.dll in the destination: obj\Debug\Metadata\PluginAssemblies [C:\Users\emman\code\Solution\Solution.cdsproj]

mannybellas avatar Jan 09 '23 21:01 mannybellas

I think the pac solution add-reference command is meant to add PCF component projects to the solution, not plugin projects.

khoait avatar Jun 16 '23 10:06 khoait