建立在失败TFS [英] Build failed in TFS

查看:860
本文介绍了建立在失败TFS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TFS自动化建设,我安装了TFS 2013年,在服务器上的.NET Framework 4.5.1。我创建了一个应用程序,并在TFS生成定义。

当我从触发我的系统构建,它显示这个错误:


  

C:\\ Program Files文件
  (86)\\的MSBuild \\ 12.0 \\ BIN \\ AMD64 \\ Microsoft.Common.CurrentVersion.targets
  (97):无效的静态方法调用语法:
  \"[Microsoft.Build.Utilities.ToolLocationHelper]::GetPlatformSDKDisplayName($(TargetPlatformIdentifier),
  $(TargetPlatformVersion))。方法
  Microsoft.Build.Utilities.ToolLocationHelper.GetPlatformSDKDisplayName
  未找到。静态方法调用应该是这样的形式:
  $([FullTypeName] ::方法()),例如$([System.IO.Path] ::联合收割机( A
   B ))。



解决方案

您构建服务器应该反映你的开发人员工作站。

您应该具有Visual Studio(这将带来SDK)和其他一切你的开发人员需要在本地建立。

I am using TFS for Automation build, I installed TFS-2013, .net framework 4.5.1 on the server. I created an application and build definition in TFS.

When I am triggering build from my system, it is showing this error:

C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (97): Invalid static method invocation syntax: "[Microsoft.Build.Utilities.ToolLocationHelper]::GetPlatformSDKDisplayName($(TargetPlatformIdentifier), $(TargetPlatformVersion))". Method 'Microsoft.Build.Utilities.ToolLocationHelper.GetPlatformSDKDisplayName' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(a, b)).

解决方案

Your build server should mirror your developer workstation.

You should have Visual Studio (which will bring the SDK) and everything else that your developers need to build locally.

这篇关于建立在失败TFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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