arame3333
arame3333

Reputation: 10193

Cannot remove reference to EF version 6 in build

I am using TFS 2010 and VS 2012.

I failed in my attempt to upgrade MVC4 to MVC5. I thought I rolled back my project OK in TFS but my builds fail because the references to EF version 6 have not all been removed.

As far as I can tell I have removed EF v6 everywhere in my code. However in my build I have the following message;

Unified primary reference "EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Using this version instead of original version "4.4.0.0" in "C:\Builds\3\solutionA\solutionA- Test\Sources\projectB\projectB\bin\Debug\projectB.dll" because AutoUnify is 'true'.
Resolved file path is "C:\Builds\3\solutionA\solutionA - Test\Sources\MVC4\solutionA\solutionA.Model\lib\EntityFramework.dll".
Reference found at search path location "{CandidateAssemblyFiles}".

So what does "AutoUnify is true" mean?

Upvotes: 0

Views: 251

Answers (1)

Mabdullah
Mabdullah

Reputation: 1013

Decided to make a proper answer from our comments. I think this initial problem was an out of sync dll, from the packages folder. You re-installed EF 5 fresh were still having packages issues.

This appears to also be something with your Nuget setup. This SO article is the same error as your latest build error. Build cannot find entity framework .

In particular this article from the accepted answer sounds very similar to the issues you're having. http://msmvps.com/blogs/rfennell/archive/2011/10/17/using-nuget-and-tfs-build-2010.aspx especially to your point that it works locally, but not in the build process. Let me know if your issues seems different.

Upvotes: 1

Related Questions