Jul 10

C:WindowsMicrosoft.NETFramework64v4.0.30319Microsoft.Common.targets (1605): Could not resolve this reference. Could not locate the assembly “EntityFramework”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

Project build fine on local machine, but fails on TFS with error: C:WindowsMicrosoft.NETFramework64v4.0.30319Microsoft.Common.targets (1605): Could not resolve this reference. Could not locate the assembly “EntityFramework”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

It took me some time to solve, but the solution is simple: Add the package folder to sourcecontrol

◾go to source control explorer
◾open your solution
◾right click Packages folder
◾click ‘Add items to folder’
◾select all files
◾click next
◾click excluded items
◾select all files
◾click include items
◾click finish