Skip to content

Cannot build cdsproj if reference plugin project has dots (.) in .csproj name #1040

@lukesartain

Description

@lukesartain

I have added a plugin project reference to my .cdsproj named similar to below, which includes dots.

<ItemGroup> <ProjectReference Include="..\Plugins\LS.Dataverse.Plugins.csproj" /> </ItemGroup>

When building the project I get the following error:

....nuget\packages\microsoft.powerapps.msbuild.solution\1.34.3\build\Microsoft.PowerApps.MSBuild.Solution.targets(137,5): error : Cannot find required file '...\SolutionName\obj\Debug\Metadata\PluginAssemblies\LSDataversePlugins-D7213E1E-F3E
B-4579-A6B9-6C9D433DD7EE\WHSDataversePlugins.dll'. [...\SolutionName\SolutionProjName.cdsproj]

Checking the metadata folder referenced in the error the plugin assembly found there is LS.Dataverse.Plugins-D7213E1E-F3E
B-4579-A6B9-6C9D433DD7EE\WHSDataversePlugins.dll (ie, with dots). If I remove dots from the cdsproj name it builds fine.

As a workaround I can revert to using a mapping file instead of adding plugin project as a reference but trying to keep builds as efficient as possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions