Skip to content

Native DLLs are copied twice #1765

Open
@Lumoryel

Description

@Lumoryel

Hi there,
when using OpenCvSharp4.runtime.win in an net48 exe project (!), the native dlls (OpenCVSharpExtern.dll and opencv_videoio_ffmpeg4110.dll) are copied both to the output-subfolder "dll/x64" (and "dll/x86"), AND also directly to the output folder where the .exe is.
(When running the program, they are only searched in the dll subfolder).

I read that files in nuget directory "runtimes" are automatically copied, see
https://learn.microsoft.com/en-us/nuget/create-packages/native-files-in-net-packages#native-assets

A fix would help to not have too many big dlls in the output dir (and maybe in a deployment scenario, where everything in the output dir is installed).
Maybe it can be fixed by putting the files in another folder than "runtime".

Thanks
Henning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions