2015-07-10 157 views
1

我正在使用TFS for Automation构建,我在服务器上安装了TFS-2013,.net framework 4.5.1。我在TFS中创建了一个应用程序和构建定义。在TFS中构建失败

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

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)).

回答

0

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

您应该有Visual Studio(它将带来SDK)以及您的开发人员需要在本地构建的其他任何东西。

+1

是否需要的Visual Studio TFS服务器上解析给我吗? –

+0

除非它也是构建服务器(不推荐) –

+0

我的构建服务器上安装了VS2013,并且也出现此错误。 – Shiv