构建找不到实体框架 [英] Build cannot find entity framework

查看:149
本文介绍了构建找不到实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我建立我的项目在TFS无法找到实体fraemwork,但是当我看到该文件夹​​中它是存在的;

When I build my project in TFS it cannot find the entity fraemwork, yet when I look in the folder it is there;

我得到这些错误信息;

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?

推荐答案

这听起来像您的构建服务器不会自动下载的NuGet包。我假设你正在使用的NuGet因为在包文件夹中的构建正在寻找的依赖。

It sounds like your build server is not automatically downloading the NuGet packages. I'm assuming you're using NuGet since the build is looking for the dependency in a "packages" folder.

我想看看下面的一些文章:

I would check out some of the following articles:

使用的NuGet和TFS构建2010

<一个href=\"http://www.centrolutions.com/blog/post/2012/07/05/NuGet-and-TFS-2010-Automated-Build.aspx\">NuGet和TFS 2010自动编译

这篇关于构建找不到实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆