In my ASP.NET vNext project I'm using 2 dependencies from Entity Framework 7, which are :
- "EntityFramework.SqlServer": "7.0.0-beta1"
- "EntityFramework.Commands": "7.0.0-beta1"
I want to use the beta2 release, and so I added a third dependency which is "EntityFramework.Core": "7.0.0-beta2". So I have :
- "EntityFramework.SqlServer": "7.0.0-beta2"
- "EntityFramework.Commands": "7.0.0-beta2"
- "EntityFramework.Core": "7.0.0-beta2"
But Visual Studio throw an error :
Error - CS0121 - The call is ambiguous between the following methods or properties: 'Microsoft.Framework.DependencyInjection.EntityServiceCollectionExtensions.AddEntityFramework(Microsoft.Framework.DependencyInjection.IServiceCollection, Microsoft.Framework.ConfigurationModel.IConfiguration)' and 'Microsoft.Framework.DependencyInjection.EntityServiceCollectionExtensions.AddEntityFramework(Microsoft.Framework.DependencyInjection.IServiceCollection, Microsoft.Framework.ConfigurationModel.IConfiguration)' - Startup.cs
Same error with CoreCLR ... Any ideas ?