使用TFS2013构建VS2015 [英] VS2015 build with TFS2013

查看:162
本文介绍了使用TFS2013构建VS2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为TFS2013的VS2015解决方案进行团队建设. 在构建服务器上安装了VS2015,并且我更改了构建模板,因此msbuild的参数为\ tv:14.0,但是当开始构建时,出现以下错误:

I'm trying to do a teambuild for a VS2015 solution with TFS2013. On the buildserver VS2015 is installed and I changed the buildtemplate so msbuild has an argument \tv:14.0, but when a start a build I get the following error:

C:\ Program文件 (x86)\ MSBuild \ 14.0 \ bin \ Microsoft.Common.CurrentVersion.targets(96): 无效的静态方法调用语法: "[[Microsoft.Build.Utilities.ToolLocationHelper] :: GetPlatformSDKDisplayName($(TargetPlatformIdentifier), $(TargetPlatformVersion))".方法 'Microsoft.Build.Utilities.ToolLocationHelper.GetPlatformSDKDisplayName' 未找到.静态方法调用应采用以下形式: $([FullTypeName] :: Method()),例如$([System.IO.Path] :: Combine(ab)).

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (96): 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)).

构建服务器已重新启动,但仍然出现错误. 我还检查了该线程:在TFS中构建失败,但那里没有给出真正的答案.有谁知道如何解决这个问题.

The buildserver has been restarted but I still get the error. I also checked this thread: Build failed in TFS but no real answer was given there. Is there anyone that knows how to solve this.

推荐答案

我遇到了完全相同的错误.我确定TFS2013是RTM版本,因此我们安装了TFS2013 Update5.现在,如果我将* .12.xaml流程模板与/tv:14.0/p:VisualStudioVersion=14.0参数一起运行,则构建成功.我还制作了* .12.xaml构建过程的副本,并将其命名为* .14.xaml,并将运行MSBuild步骤" ToolVersion属性更改为"14.0",并且该构建也可以正常工作,而无需使用参数.

I was experiencing the exact same error. I determined that TFS2013 was the RTM version so we installed TFS2013 Update 5. Now if I run using the *.12.xaml process template with the /tv:14.0 /p:VisualStudioVersion=14.0 parameters the build succeeds. I have also made a copy of the *.12.xaml build process and named it *.14.xaml and changed the Run MSBuild steps ToolVersion property to "14.0" and this build works as well, without the parameters.

这篇关于使用TFS2013构建VS2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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