-
Notifications
You must be signed in to change notification settings - Fork 893
Description
问题描述及重现代码:
Win11 没问题
Mac mini m4 报错
Unhandled exception. System.Exception: Unable to load shared library 'SQLite.Interop.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/zhiw/my_space/code/products/remote/VirtualDeskUI/VirtualDeskUI/VirtualDeskUI.Desktop/bin/Debug/net9.0/runtimes/osx/native/SQLite.Interop.dll.dylib, 0x0001): tried: '/Users/zhiw/my_space/code/products/remote/VirtualDeskUI/VirtualDeskUI/VirtualDeskUI.Desktop/bin/Debug/net9.0/runtimes/osx/native/SQLite.Interop.dll.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhiw/my_space/code/products/remote/VirtualDeskUI/VirtualDeskUI/VirtualDeskUI.Desktop/bin/Debug/net9.0/runtimes/osx/native/SQLite.Interop.dll.dylib' (no such file), '/Users/zhiw/my_space/code/products/remote/VirtualDeskUI/VirtualDeskUI/VirtualDeskUI.Desktop/bin/Debug/net9.0/runtimes/osx/native/SQLite.Interop.dll.dylib' (no such file)
var builder = new FreeSqlBuilder()
.UseConnectionString(DataType.Sqlite, dbConfig?.ConnectionString)
.UseAutoSyncStructure(dbConfig?.AutoSyncStruct ?? false)
.UseLazyLoading(true)
.UseMonitorCommand(cmd => Console.WriteLine($"Sql: {cmd.CommandText}"));
return builder.Build();数据库版本
安装的Nuget包
.net framework/. net core? 及具体版本
dotnet9