BlueshiftSoftware / EntityFrameworkCore

NoSQL providers for EntityFramework Core
Other
281 stars 57 forks source link

Package is expecting wrong version of Microsoft.EntityFrameworkCore #6

Closed Murf closed 7 years ago

Murf commented 7 years ago

When I run the following command: Install-Package Blueshift.EntityFrameworkCore.MongoDB -Version 2.0.0-preview-t0045b4d83 -Source https://www.myget.org/F/efcore-mongodb/api/v3/index.json

I get this warning in the output: Detected package downgrade: Microsoft.EntityFrameworkCore from 2.0.0-preview1-24639 to 1.1.1 MyApp (>= 1.0.0) -> Blueshift.EntityFrameworkCore.MongoDB (>= 2.0.0-preview-t0045b4d83) -> Microsoft.EntityFrameworkCore (>= 2.0.0-preview1-24639) MyApp (>= 1.0.0) -> Microsoft.EntityFrameworkCore (>= 1.1.1)

When I try and use the following in my app: optionsBuilder.UseMongoDb(mongoClient);

I get the following error: Severity Code Description Project File Line Suppression State Error CS1705 Assembly 'Blueshift.EntityFrameworkCore.MongoDB' with identity 'Blueshift.EntityFrameworkCore.MongoDB, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.EntityFrameworkCore, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which has a higher version than referenced assembly 'Microsoft.EntityFrameworkCore' with identity 'Microsoft.EntityFrameworkCore, Version=1.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' MyApp C:\Users\user\documents\visual studio 2017\Projects\MyApp\MyApp\Model\MongoDbContext.cs 31 Active

crhairr commented 7 years ago

Duplicate of #3.