Skip to content

Issue: Locating relevant dll versions for different OS architectures isn't supported #5

@DonMatron

Description

@DonMatron

Hello again :)

I found something that could possibly be improved in the next version of the bridge: locating dlls depending on current OS architecture.

Background

In project I use SQLite and EF. Hence I'm using Microsoft.EntityFrameworkCore.Sqlite that adds SQLitePCLRaw.provider.e_sqlite3 as transitive package.

After building e_sqlite3 package is being compiled into bunch of libraries which are structured as on screenshot below.
image

The problem

When trying to locate e_sqlite3.dll, the app does not load needed dll since it only searches in dotnet folder and does not enter subfolders.

Related issues

The problem persists in other libraries too, here are some links to the very same issue from godot engine:

Possible solutions

I created new ASP.NET app, added Microsoft.EntityFrameworkCore.Sqlite package there and copied one of the controllers from my TauriPlugIn project. As the result everything worked as expected and the correct version of package was loaded.
So my guess is that there is some kind of runtime check, that is missing in bridge project.

PS

As a temporary solution i added e_sqlite3.dll from win-x64 folder directly to my TauriPlugIn project and set it to always copy file to build output, which allows me to continue working.

I'll write here if I find how to fix the issue and would be grateful for any help in dealing with this issue.

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