简体   繁体   English

在TFS 2013 Team Build上构建带有单元测试的VS 2015解决方案

[英]Build VS 2015 Solution w/ Unit Tests on TFS 2013 Team Build

developers are using VS 2015 now but we don't want to upgrade to TFS 2015 on the server. 开发人员现在正在使用VS 2015,但我们不想在服务器上升级到TFS 2015。 So trying to have TFS 2013 Update 5 Team Build build our vs 2015 solution w/ unit tests (x64 if that matters). 因此,尝试让TFS 2013 Update 5 Team Build构建带有单元测试的xv 2015解决方案(如果重要的话,则为x64)。

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: 我根据其他答案尝试了几件事(制作了一个新模板,并将BuildProcessVersion从12.0更改为14.0,并为RunMSBuild添加了ToolVersion =“ [14.0]”)-但是现在当我开始团队构建时得到了以下信息:

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. 模板文件的版本是14.0。 The maximum supported version for this build controller is 12.0.0.0. 此构建控制器的最大支持版本为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) (类型异常)异常堆栈跟踪:在Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request)处的Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity活动,IBuildDetail构建,WorkflowRequest请求,IDictionary`2 dataContext) ,WorkflowManagerActivity活动,BuildWorkflowInstance&工作流程实例,Exception&错误,Boolean&syncLockTaken)


References: 参考文献:

TFS Build 2013 - using Visual Studio 2015 TFS Build 2013-使用Visual Studio 2015

Make local TFS build agent to use v14 msbuild tools 使本地TFS生成代理使用v14 msbuild工具


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... ----在tfs 2013中为默认模板编辑5/1/2016,似乎没有ToolPath属性...我确实更新了ToolsVersion ...

TFS 2013构建模板

OK - /p:VisualStudioVersion=14.0 did not work - I had to add /tv:14.0. OK-/p:VisualStudioVersion=14.0无法正常工作-我必须添加/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 所以这就是我所做的:1.安装TFS 2013和设置构建服务器2.安装VS 2015 3.安装VS 2013 4.在团队构建中,使用默认模板(TfvcTemplate.12.xaml)并使用/tv:14.0作为MS Build参数

您必须在生成代理上安装VS 2015,然后在/p:VisualStudioVersion=14.0上使用/p:VisualStudioVersion=14.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM