xamarin conflicts with Microsoft.EntityFrameworkCore.Sqlite

c# entity-framework-core visual-studio xamarin.android xamarin.forms

Question

I want to use entity framework in my xamarin.forms solution, but when I install the "Microsoft.EntityFrameworkCore.SQLite" nugget package I face with this build error:

Can not resolve reference: System.Buffers, referenced by System.Memory. Please add a NuGet package or assembly reference for System.Buffers, or remove > the reference to System.Memory.

Error screenshot:

https://i.stack.imgur.com/1Yr82.png

how can I handle this error? if can not handle this error, how I can use entity framework with xamarin.forms? or is there any alternative solution to entity framework?

I have visual studio 15.8.1 and Microsoft.EntityFrameworkCore.SQLite v2.1.2, both of them are the latest version.

thank you so much

1
2
8/22/2018 2:46:35 PM

Popular Answer

try install-package System.Buffers in same project of EF, worked for me.

1
8/24/2018 1:00:56 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow