-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrations Bundle needs help finding SQLIte on MacOS #25483
Comments
/cc @bricelam |
Does this work? DYLD_LIBRARY_PATH=$HOME/.net ./bundle |
sorry same error |
I had changed over to preview7 so now using daily builds (including dotnet-ef) with 6.0.0-rc.1.21412.2 and trying again. After that I will upload to github |
same result (also note, the dbcontext bundle command fails if csproj refs 6.0.0-x but works if i specify daily build version) |
I think this is because the same |
awesome. Will try daily builds. Thanks! |
|
Yay! Thank you for taking the time to verify the fix. |
Some of this was detailed in #19693. But at this point it deserves its own issue.
When executing ./bundle that was targetting SQLite, I got the error:
"System.DllNotFoundException: Unable to load shared library 'e_sqlite3' or one of its dependencies. "
I had this problem on two MacBooks (Big Sur) in VS Code. With the same project in VS Code on Windows , bundle succeeded.
I did a lot of testing and reading.
These two issues were useful reads and triggered the idea that finally led me to success although it is a HACK.
What ultimately worked was copying the osx/64 runtime file (in bin/debug /runtimes) into the same file path as bundle.exe.
Here you can see where bundle failed (before I copied the file) and then succeeded after I copied the file.
(Ignore the project name I was just reusing an existing project :) )
Obviously it's a hack but I don't know my way around this well enough to take this info and come up with the real problem and thereby a proper solution.
Include stack traces
Include provider and version information
EF Core version: 6.0.0-rc.1.21409.2
EF Core Tools version: 6.0.0-rc.1.21409.2
Database provider: Microsoft.EntityFrameworkCore.Sqlite
Target framework: .NET 6.0
Operating system: Macos Big Sur
IDE: VS Code 1.59.0
The text was updated successfully, but these errors were encountered: