-
Notifications
You must be signed in to change notification settings - Fork 7.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
Question: How to import SQLite library #6050
Comments
More like this issue has been mention before that NuGet mostly are for Windows full .NET. But, while writing this comment, I found the .NETCore version: Try it an see if it works with the Microsoft.Data.Sqlite.Core v2.0.0. The one previously use is only for Windows. NuGet site need to start providing more information and tag properly their packages: OS Type, .Net Full, and/or .NET Core. :) |
Thanks. Here's how things are going:
I was able to run
|
Wrong command line as parameter -Version doesn't exist. Use the following:
Also, make use to Open PSCore6 "as an Administrator" before installing Module(s)/Package(s). Hope this helps! |
Thanks for the continued help. No luck so far:
|
Hum! OK... I just duplicated the error on a VM that I'm using for testing fresh PSCore install/uninstall. Let get back to you! |
Got it!! As I mention I've been testing clean install/uninstall of PSCore then I caught the following issue. Please, try executing code function "Verify-NuGetRegistered" to verify that you got NuGet registered before doing any package installation(s):
I got it working again on my VM test. |
Very nice! But for some reason I'm still having trouble:
I also tried the following
|
Hum!! OK! Drastic measure. If you want... Uninstall PSCore6, and remove everything. I mean everything. Before uninstalling Pwsh, make a list of all NuGet/PowerShellGalley module(s)/Package(s) then uninstall them all. Then, proceed to uninstall PSCore6. Please include all left over folders. Then, do a clean installation of PSCore6, follow by registering Nuget, follow by the SQLLite package installation. If you can, post the if it works. :) |
I was able to get it working. First I tried a fresh VM and it worked the first time. Had to run Then I went back to my laptop. I was able to get it working by simply doing:
After that, I found all the packages under Now I'd like to import the package and use it. Here's my attempt:
Oh well, I don't expect you to solve all my problems so I'm happy to close this ticket anytime you see fit. It does seem like I'm trying to do something that just isn't easy yet. |
Please make sure to also send a note to the package owners. I'm glad I try to give you hand! Don't give up! |
Thanks for the encouragement, I will surely continue working on this and post a solution once I have it. |
@MaximoTrinidad thanks for taking the time to help @elijahgagne Since you were able to get the package to install, as @MaximoTrinidad noted you should follow up with the package owners on dotnetcore compatibility. (note that you can still reply to this thread while closed) |
Goal
Use SQLite with PowerShell 6. I have used SQLite with .NET Core so it seems like this should be possible. I have been using SQLite with PowerShell 5 for quite some time.
Attempt 1
Install SQLite package from nuget.
Attempt 2
Build Microsoft.Data.Sqlite from source.
Attempt 3
Use .NET Framework (.NET v4) DLL.
Environment data
The text was updated successfully, but these errors were encountered: