5

当我在 TFS 中构建项目时,它找不到实体框架,但是当我查看文件夹时,它就在那里;

我收到这些错误消息;

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.

等等。我需要做什么来解决这个问题?

4

2 回答 2

5

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

我会查看以下一些文章:

使用 Nuget 和 TFS 构建 2010

NuGet 和 TFS 2010 自动生成

于 2013-02-14T16:24:39.447 回答
0

检查您用于构建控制器的帐户的 NTFS 权限。要进行故障排除,请尝试使用构建控制器的帐户登录构建机器,看看是否可以找到这些路径并手动构建自己的构建。

于 2013-02-14T15:56:44.557 回答