D
D
DarkByte20152016-10-15 18:49:07
C++ / C#
DarkByte2015, 2016-10-15 18:49:07

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

3 answer(s)
Роман, 2016-10-16
@yarosroman Куратор тега C#

Увы но видать не до конца, EF есть под Mono.
www.mono-project.com/docs/about-mono/compatibility
попробуйте свежий Mono поставить, или клонируйте EF с github mono.

S
spencode, 2016-10-16
@spencode

Может надо поставить пакет https://www.nuget.org/packages/System.ComponentMod... ?

A
Anton Mezhuyev, 2016-10-16
@tohendiy

"Интересно тогда а чем же пользоваться в Xamarin для работы с БД?"
Попробуйте использовать SQLite. Тут должна быть неплохая инструкция:
metanit.com/sharp/xamarin/7.1.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question