Answer the question
In order to leave comments, you need to log in
Why does an error occur when installing a package?
I'm trying to install the Entity Framework from the Nuget package manager into the Visual Studio Crossplatform\Blank Xaml App project. When installing, it gives the following error:
Failed to add reference. The package 'EntityFramework' tried to add a framework reference to 'System.ComponentModel.DataAnnotations' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
How can this be fixed?
upd. Seems to have figured it out. Campaign Entity Framework only for .NET. Alas. :( Although it seems like a cross-platform release is planned, but when xs ...
I wonder then what to use in Xamarin to work with the database?
Answer the question
In order to leave comments, you need to log in
Увы но видать не до конца, EF есть под Mono.
www.mono-project.com/docs/about-mono/compatibility
попробуйте свежий Mono поставить, или клонируйте EF с github mono.
Может надо поставить пакет https://www.nuget.org/packages/System.ComponentMod... ?
"Интересно тогда а чем же пользоваться в Xamarin для работы с БД?"
Попробуйте использовать SQLite. Тут должна быть неплохая инструкция:
metanit.com/sharp/xamarin/7.1.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question