Skip to content

Build cdsproj (or solution pack) cannot find plugin dll #1232

Closed

Description

@KimBon

Hi

We are having issues to replace the plugin assembly by the build result. As described in discussion #832 by Marc Schweigert (@devkeydet) , we should be able to use pac solution sync and dotnet build on cdsproj

It looks like both commands dotnet build Prefix.ProjectName.cdsproj and pac solution pack are having the same issue:

  • plugin assembly is being built as Prefix.ProjectName.Plugins.dll
  • it is added to the metadata folder under obj in the solution base folder with that name
  • it is then refered to as PrefixProjectName.dll, so without namespace separator '.'

Error:
Running Solution Packager to build package type: Unmanaged bin\Debug\prefix_base.zip
C:\Users\xyz.nuget\packages\microsoft.powerapps.msbuild.solution\1.47.1\build\Microsoft.PowerApps.MSBuild.Solution.targets(137,5): error : Cannot find required file 'C:\src\Prefix.ProjectName\src\Prefix.ProjectName.Solution\prefix_base\obj\Debug\Metadata\PluginAssemblies\PrefixProjectName-E8F03FB0-2865-4BC3-8310-703E3B9FA96B\PrefixProjectName.dll'.

Cdsproj is having the necessary setup and also csproj looks ok.

Activity

  1. added
    bug
    on Aug 25, 2025
  2. KimBon commented on Sep 1, 2025

    @KimBon
    Author

    Apparently, the mapped path was not completely ok. When starting from cdsproj folder path, we were able to resolve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions