microsoft / powerplatform-vscode

The Power Platform VSCode extension makes it easy to manage Power Platform environments and allows the developer to create, build and deploy Power Platform solutions, packages and portals.
MIT License
210 stars 38 forks source link

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

Open mannybellas opened 1 year ago

mannybellas commented 1 year ago

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]

khoait commented 1 year ago

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