Build cannot find entity structure

When I create my project in TFS, it cannot find the essence of fraemwork, but when I look in the folder, it is;

I get these error messages;

Build started 14/02/2013 15:44:50. Project "C:\Builds\1\SCD\SCD - New Test\Sources\MVC\SCD\SCD.sln" on node 1 (default targets). ValidateSolutionConfiguration: Building solution configuration "Debug|Any CPU". Project "C:\Builds\1\SCD\SCD - New Test\Sources\MVC\SCD\SCD.sln" (1) is building "C:\Builds\1\SCD\SCD - New Test\Sources\MVC\SCD\SCD\SCD.csproj" (2) on node 1 (default targets). EntityDeployNonEmbeddedResources: Skipping target "EntityDeployNonEmbeddedResources" because it has no outputs. EntityDeployEmbeddedResources: Processing 1 EDMX files. Starting to process input file 'Models\SCD.edmx'. Finished processing input file 'Models\SCD.edmx'. Finished processing 1 EDMX files. Project "C:\Builds\1\SCD\SCD - New Test\Sources\MVC\SCD\SCD\SCD.csproj" (2) is building "C:\Builds\1\SCD\SCD - New Test\Sources\StandardClassLibrary\StandardClassLibrary\StandardClassLibrary.csproj" (3) on node 1 (default targets). PrepareForBuild: Creating directory "obj\Debug\". ResolveAssemblyReferences: Primary reference "EntityFramework". c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: 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. [C:\Builds\1\SCD\SCD - New Test\Sources\StandardClassLibrary\StandardClassLibrary\StandardClassLibrary.csproj] For SearchPath "{HintPathFromItem}". Considered "..\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll", but it didn't exist. For SearchPath "{TargetFrameworkDirectory}". Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\EntityFramework.dll", but it didn't exist. Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\EntityFramework.exe", but it didn't exist. For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}". Considered "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v4.0\EntityFramework.dll", but it didn't exist. 

And so on. What do I need to do to fix this?

+4
source share
2 answers

It looks like your build server is not automatically loading NuGet packages. I assume you are using NuGet since the assembly is looking for a dependency in the packages folder.

I would look through some of the following articles:

Using Nuget and TFS Build 2010

Automated build of NuGet and TFS 2010

+5
source

Check the NTFS permissions for the account you use for the assembly controller. To fix the problem, try logging into your build machine using the account for the build controller and see if you can find these paths and create your own build manually.

0
source

All Articles