一个.refresh文件中的一个不仅仅在一个构建代理

时间:2016-06-23 18:46:43

标签: tfs msbuild tfs2010

所以我有一个奇怪的问题,我希望你们好人们可以指出我如何调试这个问题。

我有一个非常古老的网站,为了让它使用NuGet,它使用.dll.refresh文件从packages / {package name} / net35文件夹中提取dll。

事实:

  • 这是使用TFS 2010和MSBuild
  • 构建的
  • 我有三台构建服务器,但这并不仅适用于其中一台服务器。
  • 我有其他.refresh文件,刷新功能适用于除Newtonsoft dll之外的每个dll(在受影响的构建代理上)。
  • 构建设置为始终清理工作区
  • 我使用相同的构建定义在所有代理上运行构建。
  • 我已经使用visual studio重新生成了.refresh文件,因此它可能不是文件编码的问题
  • 从TFS下载文件后,非工作和正在工作的构建代理之间的工作区是相同的。

在工作构建日志中,它将Newtonsoft复制到非工作构建日志中,并且不在其中。

工作构建日志:

Build build 6/22/2016 5:06:46 PM。

项目" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \来源{web-site-name-here} .sln"在节点1上(默认目标)。

ValidateSolutionConfiguration:

构建解决方案配置"调试|混合平台"。

项目" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \来源{web-site-name-here} .sln" (1)正在构建" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources {web-site-name-here} .metaproj" (2)在节点1上(默认目标)。

构建

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ AWSSDK.1.5.20.0 \ lib \ AWSSDK.dll&#34复制文件;到" {web-site-name-here} \ Bin \ AWSSDK.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.ClientMarginService.1.0.1.28 \ lib \ net35复制文件\ ClientMarginService.Common35.dll"到" {web-site-name-here} \ Bin \ ClientMarginService.Common35.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Hcas.Client.1.8.0.1 \ lib \ net35 \ Hcas复制文件.Client.dll"到" {web-site-name-here} \ Bin \ Hcas.Client.dll"。

从" D:\ Builds \ 76复制文件{team-project-here} {web-site-name-here} \ Sources \ packages \ FMS.FundsWireBalancing.1.0.3 \ lib \ FMS.FundsWireBalancing的.dll"到" {web-site-name-here} \ Bin \ FMS.FundsWireBalancing.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ ProductMargin.Contracts.1.9.9.0 \ lib \ net35 \ ProductMargin复制文件.Contracts3.5.dll" to" {web-site-name-here} \ Bin \ ProductMargin.Contracts3.5.dll"。

从" D:\ Builds \ 76复制文件{team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.Affiliates.Common.1.0.6.0 \ lib \ net35 \ Web.Clients.Affiliates.Common.dll"到" {web-site-name-here} \ Bin \ Web.Clients.Affiliates.Common.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.Affiliates35.1.0.4.0 \ lib \ net35复制文件\ Web.Clients.Affiliates35.dll"到" {web-site-name-here} \ Bin \ Web.Clients.Affiliates35.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.ChangeOfOwnership.Common.1.0.7.0 \ lib复制文件\ net35 \ Web.Clients.ChangeOfOwnership.Common.dll" to" {web-site-name-here} \ Bin \ Web.Clients.ChangeOfOwnership.Common.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.ChangeOfOwnership35.1.0.4.0 \ lib \ net35复制文件\ Web.Clients.ChangeOfOwnership35.dll" to" {web-site-name-here} \ Bin \ Web.Clients.ChangeOfOwnership35.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.ClientMarginService.1.0.1.28 \ lib \ net35复制文件\ Web.Clients.ClientMarginService35.dll"到" {web-site-name-here} \ Bin \ Web.Clients.ClientMarginService35.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.HMS.Common.1.1.0.31 \ lib复制文件\ net35 \ Web.Clients.HMS.Common.dll"到" {web-site-name-here} \ Bin \ Web.Clients.HMS.Common.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.HMS35.1.1.0.35 \ lib \ net35复制文件\ Web.Clients.HMS35.dll"到" {web-site-name-here} \ Bin \ Web.Clients.HMS35.dll"。

从" D:\ Builds \ 76复制文件{team-project-here} {web-site-name-here} \ Sources \ packages \ EnterpriseServices.MarginServiceClient.2.0.0.6 \ lib \ net35 \ MarginServiceDataContracts的.dll" to" {web-site-name-here} \ Bin \ MarginServiceDataContracts.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ sources \ packages \ EnterpriseServices.MarginServiceClient.2.0.0.6 \ lib \ net35 \ MarginServiceProxy复制文件-35.dll" to" {web-site-name-here} \ Bin \ MarginServiceProxy-35.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Newtonsoft.Json.7.0.1 \ lib \复制文件net35 \ Newtonsoft.Json.dll"到" {web-site-name-here} \ Bin \ Newtonsoft.Json.dll"。

从" D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Sources \ packages \ Newtonsoft.Json.7.0.1 \ lib \复制文件net35 \ Newtonsoft.Json.xml" to" {web-site-name-here} \ Bin \ Newtonsoft.Json.xml"。

C:\ Windows \ Microsoft.NET \ Framework64 \ v2.0.50727 \ aspnet_compiler.exe -v / {web-site-name-here} -p {web-site-name-here} \ -u -f - d -fixednames D:\ Builds \ 76 {team-project-here} {web-site-name-here} \ Binaries_PublishedWebsites {web-site-name-here} \

非工作构建日志:

Build build 6/22/2016 5:06:46 PM。

项目" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \来源{web-site-name-here} .sln"在节点1上(默认目标)。

ValidateSolutionConfiguration:

构建解决方案配置"调试|混合平台"。

项目" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \来源{web-site-name-here} .sln" (1)正在构建" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources {web-site-name-here} .metaproj" (2)在节点1上(默认目标)。

构建

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ AWSSDK.1.5.20.0 \ lib \ AWSSDK.dll&#34复制文件;到" {web-site-name-here} \ Bin \ AWSSDK.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.ClientMarginService.1.0.1.28 \ lib \ net35复制文件\ ClientMarginService.Common35.dll"到" {web-site-name-here} \ Bin \ ClientMarginService.Common35.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ Hcas.Client.1.8.0.1 \ lib \ net35 \ Hcas复制文件.Client.dll"到" {web-site-name-here} \ Bin \ Hcas.Client.dll"。

从" D:\ Builds \ 84复制文件{team-project-here} {web-site-name-here} \ Sources \ packages \ FMS.FundsWireBalancing.1.0.3 \ lib \ FMS.FundsWireBalancing的.dll"到" {web-site-name-here} \ Bin \ FMS.FundsWireBalancing.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ ProductMargin.Contracts.1.9.9.0 \ lib \ net35 \ ProductMargin复制文件.Contracts3.5.dll" to" {web-site-name-here} \ Bin \ ProductMargin.Contracts3.5.dll"。

从" D:\ Builds \ 84复制文件{team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.Affiliates.Common.1.0.6.0 \ lib \ net35 \ Web.Clients.Affiliates.Common.dll"到" {web-site-name-here} \ Bin \ Web.Clients.Affiliates.Common.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.Affiliates35.1.0.4.0 \ lib \ net35复制文件\ Web.Clients.Affiliates35.dll"到" {web-site-name-here} \ Bin \ Web.Clients.Affiliates35.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.ChangeOfOwnership.Common.1.0.7.0 \ lib复制文件\ net35 \ Web.Clients.ChangeOfOwnership.Common.dll" to" {web-site-name-here} \ Bin \ Web.Clients.ChangeOfOwnership.Common.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.ChangeOfOwnership35.1.0.4.0 \ lib \ net35复制文件\ Web.Clients.ChangeOfOwnership35.dll" to" {web-site-name-here} \ Bin \ Web.Clients.ChangeOfOwnership35.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.ClientMarginService.1.0.1.28 \ lib \ net35复制文件\ Web.Clients.ClientMarginService35.dll"到" {web-site-name-here} \ Bin \ Web.Clients.ClientMarginService35.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.HMS.Common.1.1.0.31 \ lib复制文件\ net35 \ Web.Clients.HMS.Common.dll"到" {web-site-name-here} \ Bin \ Web.Clients.HMS.Common.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ Web.Clients.HMS35.1.1.0.35 \ lib \ net35复制文件\ Web.Clients.HMS35.dll"到" {web-site-name-here} \ Bin \ Web.Clients.HMS35.dll"。

从" D:\ Builds \ 84复制文件{team-project-here} {web-site-name-here} \ Sources \ packages \ EnterpriseServices.MarginServiceClient.2.0.0.6 \ lib \ net35 \ MarginServiceDataContracts的.dll" to" {web-site-name-here} \ Bin \ MarginServiceDataContracts.dll"。

从" D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Sources \ packages \ EnterpriseServices.MarginServiceClient.2.0.0.6 \ lib \ net35 \ MarginServiceProxy复制文件-35.dll" to" {web-site-name-here} \ Bin \ MarginServiceProxy-35.dll"。

C:\ Windows \ Microsoft.NET \ Framework64 \ v2.0.50727 \ aspnet_compiler.exe -v / {web-site-name-here} -p {web-site-name-here} \ -u -f - d -fixednames D:\ Builds \ 84 {team-project-here} {web-site-name-here} \ Binaries_PublishedWebsites {web-site-name-here} \

1 个答案:

答案 0 :(得分:0)

我最终搞清楚了。我在构建时打开了Diagnostic debugging,然后在结果日志中搜索了Newtonsoft这个单词的所有实例。从那里,我了解到它跳过了.dll.refresh文件请求的文件副本,因为它在GAC中找到了不同的Newtonsoft.dll版本。所以解决方法是从GAC中删除旧的Newtonsoft.dll实例。