在TFS 2013 Team Build上构建带有单元测试的VS 2015解决方案 [英] Build VS 2015 Solution w/ Unit Tests on TFS 2013 Team Build

查看:94
本文介绍了在TFS 2013 Team Build上构建带有单元测试的VS 2015解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开发人员现在正在使用VS 2015,但我们不想在服务器上升级到TFS 2015。因此,尝试让TFS 2013 Update 5 Team Build构建带有单元测试的xv 2015解决方案(如果重要的话,则为x64)。



我根据其他答案尝试了几件事(制作了一个新模板,并将BuildProcessVersion从12.0更改为14.0,并为RunMSBuild添加了ToolVersion = [14.0])-但是现在当我开始团队构建时得到了这个:



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






引用:



解决方案

确定-/p:VisualStudioVersion=14.0不起作用-我必须添加/tv:14.0。所以这就是我所做的:
1.安装TFS 2013&安装构建服务器
2.安装VS 2015
3.安装VS 2013
4.在团队构建中,使用默认模板(TfvcTemplate.12.xaml)并使用/tv:14.0作为MS Build参数


developers are using VS 2015 now but we don't want to upgrade to TFS 2015 on the server. So trying to have TFS 2013 Update 5 Team Build build our vs 2015 solution w/ unit tests (x64 if that matters).

I tried several things based on other answers (made a new template and changed BuildProcessVersion from 12.0 to 14.0 and added ToolVersion="[14.0]" for RunMSBuild) - but now getting this when I start the team build:

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)


References:

TFS Build 2013 - using Visual Studio 2015

Make local TFS build agent to use v14 msbuild tools


thanks in advance.

---- edit 5/1/2016 in tfs 2013 for the default template, there does not appear to be ToolPath property ... I did update the ToolsVersion...

解决方案

OK - /p:VisualStudioVersion=14.0 did not work - I had to add /tv:14.0. So this is what I did: 1. install TFS 2013 & setup build server 2. Install VS 2015 3. Install VS 2013 4. in the team build, use the Default Template (TfvcTemplate.12.xaml) and use /tv:14.0 as MS Build arguments

这篇关于在TFS 2013 Team Build上构建带有单元测试的VS 2015解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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