Skip to content

'locales' directory empty when using .netcore nuget packages in a child project/multi-target #4201

Description

@JPDelprat

Hello,

I have a core.net (.net 6.0) application under Windows x64, which consists of a main application project, and a child class library project. This class library project references CefSharp.WinForms.NETCore" Version="104.4.180" />.

After building, the "locales" sub-directory in my bin directory is empty (in both the class library project and in the main project). So my application crashes at some time.

My class library is a multiple target library (net452 et net60-windows). The 4.52 target works correctly.
If I reference cefsharp package in the main project, it seems to work.
I have the feeling that my problem comes from either multiple-target functionality, or from reference nuget package from child project.

I can easily reproduce the problem by creating multiple target projects, which only contains one project
(net6.0-windows instead of net6.0-windows in .csproj).

Please find attached a minimum example.

Note : my .csproj files are in the new 'sdk' style format.

Thanks in advance

Test.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions