oysteinkrog / SQLite.Net-PCL

Simple, powerful, cross-platform SQLite client and ORM - Updated version with PCL support
MIT License
353 stars 162 forks source link

Nuget Package for Windows Univeral Apps? #145

Open ravensorb opened 9 years ago

ravensorb commented 9 years ago

Are there any plans for a nugget package that supports Universal Apps? I can get it to install in the main universal app project, but not the phone project.

Error: Could not install package 'SQLite-net-wp8 3.8.5'. You are trying to install this package into a project that targets 'WindowsPhoneApp,Version=v8.1', but the package does not contain any assembly references or content files that are compatible with that framework.

oysteinkrog commented 9 years ago

Hi,

In the next/upcoming version, all the nuget packages are combined into one, but for now please try the WinRT platform nuget.

ravensorb commented 9 years ago

Good idea -- however it doesn't seem to want to install using that package.

oysteinkrog commented 9 years ago

Hmm,

Ok, I've pushed a prerelease/beta of 3.0 to nuget.org now. You can install/see it in the nuget explores if you enable prerelease to show in the list. As I mentioned it is all just one nuget now, so you will now need any of the old platform nugets, just install the main one. Please let me know if it works or not:)

oysteinkrog commented 9 years ago

Ping

ravensorb commented 9 years ago

I’ll try to get to testing this today/tomorrow .

From: Øystein Krog [mailto:notifications@github.com] Sent: Monday, March 16, 2015 7:13 AM To: oysteinkrog/SQLite.Net-PCL Cc: Shawn Anderson Subject: Re: [SQLite.Net-PCL] Nuget Package for Windows Univeral Apps? (#145)

Ping

— Reply to this email directly or view it on GitHubhttps://github.com/oysteinkrog/SQLite.Net-PCL/issues/145#issuecomment-81586214.

oysteinkrog commented 9 years ago

ping

ravensorb commented 9 years ago

So far so good. Only thing I noticed is that updating the Async library did not update the base one. Looks like there is a package dependency that needs to be updated?

ravensorb commented 9 years ago

Did you see this post

https://forums.xamarin.com/discussion/36600/xamarin-forms-android-project-is-requiring-jetbrains-annotations-pcl328-i-do-not-have-resharper

I am hitting the same issue when testing my Android app.

oysteinkrog commented 9 years ago

Hmm ok, that is concerning. Is it only the android app? I just manually checked all the assemblies and none of them have any references to the jetbrains assembly!

oysteinkrog commented 9 years ago

Prerelease 3.0.2 has a workaround for the android problem.

ravensorb commented 9 years ago

Still having a few issues - the Async version will not install right now

Image of issue

Image of issue

oysteinkrog commented 9 years ago

Oh, hmm. Perhaps the dependency has to be to 3.0.2-beta..

ravensorb commented 9 years ago

Question, I am testing beta4 on Windows Phone and am getting the following crash

An exception of type 'System.TypeLoadException' occurred in SQLite.Net.DLL but was not handled in user code

Additional information: Could not find Windows Runtime type 'Sqlite.Sqlite3'

Are we missing a dependency?

oysteinkrog commented 9 years ago

You need to install the sqlite runtime extension in visual studio I think (yes really stupid/annoying), and then add sqlite as a reference in the project.

oysteinkrog commented 9 years ago

@ravensorb Have you had a chance to test my suggestion? I would like to release the current prerelease nuget as a stable version, but I need to be sure that it works for all platforms.

ravensorb commented 9 years ago

So I tried adding the runtime extensions earlier this week and it did not work in my sample application (I was looking at updating XLabs). I'll try again this weekend (maybe I missed something)