"Verification" does not exist in the "System.Data.Entity" namespace when building Team City

I have a project that works fine on my computer, but when I try to create it in Team City, I get the following build error for the source files, where I have

using System.Data.Entity;    
using System.Data.Entity.Validation;


CS0234: The type or namespace name 'Validation' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?)

Do I need to install the Entity Framework manually on the server running Team City?

Update after activating Nuget recovery:

It must be some kind of configuration problem.

In the build log, I see that the build process is copying the .dll:

[Copy] Copying file from "D:\TeamCity\agent1\work\541c9f462afc285d\packages\EntityFramework.5.0.0\lib\net45\EntityFr    amework.dll" to "bin\Release\EntityFramework.dll".
[16:51:55][Copy] Copying file from "D:\TeamCity\agent1\work\541c9f462afc285d\packages\EntityFramework.5.0.0\lib\net45\EntityFramework.xml" to "bin\Release\EntityFramework.xml".

But shortly afterwards, he considers many different places, but does not include the bin \ Release \ EntityFramework.dll folder.

Update 2:

.dll bin/release , , , , , .

3:

, , , , .:)

+4
1

, . @Shriroop , EF.

Nuget. , : " ", nuget 2.7+ Restore mode: Restore.

nuget teamcity, "" > " Nuget" > "NuGet.exe" .

NuGet: http://img.hihi.si/Upload/5PUm.png

+1

Source: https://habr.com/ru/post/1547756/


All Articles