Efcore: Cannot find type Microsoft.EntityFrameworkCore.Metadata.Internal.RelationalFullAnnotationNames

Created on 24 Jan 2018  路  6Comments  路  Source: dotnet/efcore

Hi,
We are developing a UWP applicayion which referense SQLite .net standart data acces layer.
We are having an error when building the UWP applicatin which err or is below

Severity Code Description Project File Line Suppression State
Error Cannot find type Microsoft.EntityFrameworkCore.Metadata.Internal.RelationalFullAnnotationNames in
module Microsoft.EntityFrameworkCore.Relational.dll. Mess.Weighbridge

On the data access .net standart library got reference EFCore.Sqlite , EFCore.Sqlite.Design and EFCOre.Tools and UWP application is getting reference Data Acces layer, EFCore.Sqlite , EFCore.Sqlite.Design and EFCOre.Tools

removing all reference and clean solution, reopen vs and add relative references still same above error.
could not find any solution
Urgent help needed.
Thank you

Further technical details

Operating system:
IDE: (e.g. Visual Studio 2017 15.4)

closed-question

Most helpful comment

Had to remove Microsoft.EntityFrameworkCore.Design.Core 1.0.0-preview2-final

All 6 comments

@azizkazdal RelationalFullAnnotationNames is an internal class that existing in older versions of EF Core, but not in 2.0 or later. You'll need to update any code that uses this to build against the public surface of EF Core 2.0.

I had to remove some nuget packages that referenced earlier .NET core

@steffhimes you wouldn't perhaps know which ones that was?

Had to remove Microsoft.EntityFrameworkCore.Design.Core 1.0.0-preview2-final

I fixed this issue by removing any Microsoft.EntityFrameworkCore.X where the version was older than other Microsoft.EntityFrameworkCore.X references.
In my particular case I removed Microsoft.EntityFrameworkCore.Relational.Design v1.1.6 where my other EntityFrameworkCore references were v2.2.1

@allanrsmith You're my personal hero.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

0xdeafcafe picture 0xdeafcafe  路  189Comments

abdu292 picture abdu292  路  99Comments

matteocontrini picture matteocontrini  路  88Comments

anpete picture anpete  路  100Comments

rowanmiller picture rowanmiller  路  112Comments