TF215097:初始化构建定义的构建时发生错误异常消息:用于此构建的构建控制器不支持构建定义使用的模板文件的版本。模板文件的版本是14。 [英] TF215097: An error occurred while initializing a build for build definition Exception Message: The build controller used for this build does not support the version of the template file used by the build definition. The version of the template file is 14.

查看:107
本文介绍了TF215097:初始化构建定义的构建时发生错误异常消息:用于此构建的构建控制器不支持构建定义使用的模板文件的版本。模板文件的版本是14。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将TFS 2013用于项目,但在构建服务器上安装了visual studio 2015。


我已经为两个成功运行的解决方案设置了构建但是第三个是产生错误。


TF215097:初始化构建定义的构建时发生错误:异常消息:用于此构建的构建控制器不支持该构建的版本构建定义使用的模板文件。模板文件
的版本是14.0。此构建控制器的最大支持版本为12.0.0.0。必须升级此构建控制器才能构建此版本的模板文件。 (类型异常)异常堆栈跟踪:在Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager的Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity
活动,IBuildDetail构建,WorkflowRequest请求,IDictionary`2 dataContext)。 TryStartWorkflow(WorkflowRequest请求,WorkflowManagerActivity活动,BuildWorkflowInstance& workflowInstance,
Exception& error,Boolean& syncLockTaken)


使用构建参数定义两个有效的构建/p:VisualStudioVersion=14.0。


我在第三个定义中使用了相同的内容。


我试过/ ToolsVersion :14.0但也没有用。


不知道还有什么可以尝试。


有人有什么建议吗?

解决方案

嗨Kevin S,



感谢您在此发帖。



你说两个b uild定义运行良好,但第三个构建得到了这个错误。构建定义与它们构建的项目之间有什么区别?他们都使用相同的构建控制器和构建代理吗?请确保它们具有相同的
参数并使用相同的构建控制器。由于您使用的是TFS2013,我还建议您考虑将TFS改为TFS2015更新3或最新版本TFS2017 update1。然后你可以在TFS中使用新的VNext Build System。



最好的问候


Limitxiao Gao


Hi,We are using TFS 2013 with projects but with visual studio 2015 installed on the build server.

I have set up builds for two solutions which work successfully but a third is producing the error.

TF215097: An error occurred while initializing a build for build definition: Exception Message: The build controller used for this build does not support the version of the template file used by the build definition. The version of the template file is 14.0. The maximum supported version for this build controller is 12.0.0.0. This build controller must be upgraded to build this version of the template file. (type Exception) Exception Stack Trace: at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext) at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken) 

The two builds that work are defined using build argumants /p:VisualStudioVersion=14.0.

I have used the same for the third definition.

I have tried /ToolsVersion:14.0 also but this has not worked.

Not sure what else to try.

Anyone any suggestions?

解决方案

Hi Kevin S,

Thank you for posting here.

You said two build definition worked well, but the third build got this error. What is the difference between the build definition and the projects they build with? Did they all use the same build controller and build agent? Please make sure they have same parameters and use the same build controller. Since you are using TFS2013, I also suggest that you could consider your TFS to TFS2015 update 3 or the latest version TFS2017 update1. Then you could use the new VNext Build System in TFS.

Best Regards

Limitxiao Gao


这篇关于TF215097:初始化构建定义的构建时发生错误异常消息:用于此构建的构建控制器不支持构建定义使用的模板文件的版本。模板文件的版本是14。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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