TFS生成找不到DLL

TFS生成找不到DLL,tfs,msbuild,Tfs,Msbuild,我是TFS构建的新手。我正在使用TFS Visual Studio模板。 我的应用程序使用dev express DLL。 所有my DevXPress DLL都已签入公用文件夹: 运行生成时,生成代理失败,无法找到dev express组件。它在以下位置查找DLL:C:\Program Files(x86)\Reference Assembly\Microsoft\Framework.NETFramework\v4.5.1 2017-05-23T19:15:04.0271172Z

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

我的应用程序使用dev express DLL。 所有my DevXPress DLL都已签入公用文件夹:

运行生成时,生成代理失败,无法找到dev express组件。它在以下位置查找DLL:C:\Program Files(x86)\Reference Assembly\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}".
你知道为什么不查公用文件夹吗?我做错了什么?
谢谢你的帮助

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

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

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

我们正在验证和集成许可证信息 “构建应用程序”阶段。所以,我们有必要 在计算机上安装和注册的组件。否则 可能会出现试用窗口。您可以组织生成服务器并生成 那里的项目生成服务器应具有组件 也安装了,但是,您可以确保不会收到 许可证问题

更多详情请查看以下链接:


您的项目如何引用这些DLL?这些文件的
项目项的
值包含什么?您是使用TFVC还是Git进行源代码管理?我使用TFS作为源代码管理。Patrick,感谢您的详细说明。我在构建服务器上安装了devexpress,现在一切正常。