Skip to content

Warning when using PublishTrimmed and PublishAoT #1766

Open
@rprimora-pricer

Description

@rprimora-pricer

As the title says, when I use

<PublishAot>true</PublishAot>
<PublishTrimmed>true</PublishTrimmed>

I will get the following warning:

ILC : warning IL3000: OpenCvSharp.Internal.WindowsLibraryLoader.LoadLibrary(String,IEnumerable`1): 'System.Reflection.Assembly.Location.get' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

This is the line I think.

Is there anything you can do about it?

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