SQlite-Net Extentions not Compatible with .net Standard!
When installing this repository to .net standard xamarin.forms project it gives me awarning that this package is no more compatible with .net standard ... and when try to use it in code exactly in 'GetWithChildren' , updatewithchildrenAsync and other methods it tells me that Error CS1061 'SQLiteAsyncConnection' does not contain a definition for 'GetWithChildren' and no extension method 'GetWithChildren' accepting a first argument of type 'SQLiteAsyncConnection' could be found (are you missing a using directive or an assembly reference is there any solution for this incompatibility?
Comments (5)
-
-
reporter Thank you , but how can solve the incompatibility warning in Dependencies that tells : Warning NU1701 Package 'SQLiteNetExtensions 2.0.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
-
Probably the PCL profile that you're using is not compatible with the used in the Nuget library. If you can't change it, try copying the sqlite-net-extensions sources to your project.
-
Is it possible to add a .net-standard nuget? This is a new standard for xamarin now.
-
I have just deployed a .net-standard NuGet here, this issue can be closed.
- Log in to comment
If you're using
SQLiteAsyncConnection
, you have to use the Async version of the library and use the async methods. Check the documentation and the sample application for more info.