2

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

MBT
  • 21,733
  • 19
  • 84
  • 102
Fariborz Korevli
  • 439
  • 5
  • 16

2 Answers2

1

I installed "Microsoft.AspNetCore.SignalR.Client.Core" package and my problem solved.

Fariborz Korevli
  • 439
  • 5
  • 16
1

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

Gustavo Rossi Muller
  • 1,062
  • 14
  • 18