-
-
Notifications
You must be signed in to change notification settings - Fork 736
Issue Publishing with SQLite #82
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
Comments
Interesting - I'm not sure why it needs to be win7-x64. We started with the "win10" rid and later @Petermarcu send us a PR to use the more general rid. @Petermarcu : Any idea why it is sometimes needed to be more "specific"? |
I try to add some options for the build and start command - maybe we need the ability to overwrite the default values. |
It's likely because Sqlite has a native asset and isn't providing a win-x64. I'd have to take a closer look to be sure. |
I was able to repro this. Note that you can't It is as I suspected. Sqlite should be providing a win-x64 asset as a default asset to use if nothing more specific is specified. You can see the win7 that I pulled from the .deps.json file of my repro project.
I'm looking to see where we can open an issue and finding exactly the right package that needs to be updated. |
Ok, its this package. https://www.nuget.org/packages/SQLitePCLRaw.lib.e_sqlite3.v110_xp/ |
I've been trying to find a workaround. I was trying to find a way to hack the NuGet cache to fix the package in place but that was causing other side effects. I was able to get it to work by copying the file from here: |
Wow - thanks a lot! Until the package is "fixed": My plan is to add some options to our "build"/"start" command to overwrite some of our arguments (e.g. release/debug or which arch). |
Sounds good :) I made a PR that I think fixes the package: ericsink/SQLitePCL.raw#195 not sure if/when it will be merged. |
We released a new version and now support addional params for the build command like this: dotnet electronize build /target custom win7-x86;win32 /electron-arch ia32 The "custom" target can be used to specify the desired .NET Core platform and the desired electron packager platform. Be aware that the electron packager itself has an addional parameter called arch, which specifies x86/x64 etc. For the SQLLite issue you may want to use "/target custom win7-x64;win32". You should now be able to mix everything that you want :) Just update the CLI to version 0.0.9 |
Uh oh!
There was an error while loading. Please reload this page.
How can I change this so
dotnet electronize start
uses win7-x64 instead of win-x64?How to repro:
setup getting started code:
https://docs.microsoft.com/en-us/ef/core/get-started/netcore/new-db-sqlite
after everything is said done:
Error:
Temp Solution:
dotnet publish -r win7-x64 --output ".\published"
How can I change this so
dotnet electronize start
uses win7-x64 instead of win-x64?Environment
.NET Command Line Tools (2.1.2)
Product Information:
Version: 2.1.2
Commit SHA-1 hash: 5695315371
Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.2\
Microsoft .NET Core Shared Framework Host
Version : 2.0.4
Build : 7f262f453d8c8479b9af91d34c013b3aa05bc1ff
Thanks in advance!
The text was updated successfully, but these errors were encountered: