TFS Build找不到Dlls

时间:2017-05-23 19:37:49

标签: tfs msbuild

我是TFS构建的新手。我正在使用TFS Visual Studio模板。 enter image description here

我的应用使用dev express dlls。 我的所有devexpress dll都被检入Common Folder:

enter image description here

当我运行构建时,构建代理失败而无法找到dev express组件。它在下面寻找dll:C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1

2017-05-23T19:15:04.0271172Z                  For SearchPath "{TargetFrameworkDirectory}".
2017-05-23T19:15:04.0271172Z                  Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\DevExpress.Charts.v15.2.Core.winmd", but it didn't exist.
2017-05-23T19:15:04.0271172Z                  Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\DevExpress.Charts.v15.2.Core.dll", but it didn't exist.
2017-05-23T19:15:04.0271172Z                  Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\DevExpress.Charts.v15.2.Core.exe", but it didn't exist.
2017-05-23T19:15:04.0427439Z                  Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\Facades\DevExpress.Charts.v15.2.Core.winmd", but it didn't exist.
2017-05-23T19:15:04.0427439Z                  Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\Facades\DevExpress.Charts.v15.2.Core.dll", but it didn't exist.
2017-05-23T19:15:04.0427439Z                  Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\Facades\DevExpress.Charts.v15.2.Core.exe", but it didn't exist.

2017-05-23T19:15:03.7771166Z      7>ResolveAssemblyReferences:
2017-05-23T19:15:04.0271172Z          Primary reference "DevExpress.Charts.v15.2.Core, Version=15.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a".
2017-05-23T19:15:04.0271172Z ##[warning]C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "DevExpress.Charts.v15.2.Core, Version=15.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2017-05-23T19:15:04.0271172Z      7>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "DevExpress.Charts.v15.2.Core, Version=15.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [E:\agent\CentralCompliance\_work\9\s\CentralCompliance\CentralCompliance.csproj]
2017-05-23T19:15:04.0271172Z                  For SearchPath "{CandidateAssemblyFiles}".

知道为什么它没有查看公共文件夹?我究竟做错了什么? 感谢帮助。

2 个答案:

答案 0 :(得分:1)

您必须在构建代理上安装DevExpress。构建过程使用本地DevExpress安装来恢复依赖项。

答案 1 :(得分:1)

由于VS设计器的特殊性,所有设计器组件都应安装在GAC中。猜猜这就是为什么它在寻找下面的dll:     C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1而不是您的常用文件夹。如果没有安装DevExpress,则无法将这些程序集部署到计算机。构建代理也是如此。设计组件将在DevExpress安装期间放入GAC。

除了避免许可证问题外,您还需要在构建代理上安装DevExpress。

  

我们正在核实并整合许可证信息   "构建应用程序"阶段。因此,有必要拥有我们的   组件在计算机上安装和注册。否则,   可能会出现试用窗口。您可以组织构建服务器和构建   那里的项目。 构建服务器应该具有组件   然而,安装,你可以肯定你不会得到一个   许可证问题。

更多详情请看下面的链接: