-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full .NET build error after installing EntityFramework.SqlServer (Multiple assemblies with equivalent identity have been imported) #2340
Comments
Looks like we're accidentally referencing a design-time facade in our nupkg. Easy to do since it's required for DNX to build. |
We should consider creating a build verification test to catch these. (or DNX should play better with NuGet & MSBuild) |
Filed aspnet/dnx#2031 |
This appears to be fixed using the latest tools and packages. |
Can you be more specific on "the latest tools and packages" please? I believe I am seeing this with ASP.NET 5 projects + EF 6.1.3 as well, but only in the Published application scenario. (running through VS works just fine) I would like to update dependencies so that it works once published, or the repro can be reduced and actionable. |
Hey, EF6 + EF7 in the same application is not supported. You end up trying to load two different versions of assemblies with the same names (which is not supported by the CLR). ~Rowan |
Im not using both. Just a dll built with 6.1.3, referenced via Nuget, in an ASP.NET 5 project. |
You might have other references that are breaking your packages. What does your project.json look like |
You may think that you are not trying to use both but the EntityFramework.SqlServer the title refers to is a v7 package. The SQL Server provider never had its own package in EF 6.x. For EF 6.x you just need to install the EntityFramework package and you'll get the SQL Server provider alongside the core EntityFramewotk.dll assembly. Can you detail your repro steps? |
@divega That could very well be the case, but how would it explain the differences in runtime behavior? Locally running it works just fine and it has all the new stuff installed. Publishing to a server doesn't work, and it has nothing new installed. My steps are basically:
|
Project that consumes the EF nuget package:
Top level Web API project:
|
Build error
The text was updated successfully, but these errors were encountered: