不能使用TF Service构建,可以在本地构建 [英] Can't build using TF Service, builds locally fine

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

问题描述

我正在尝试使一个项目能够持续集成.当前,它由一个库dll,.net 4.5应用程序和WP8应用程序组成.我将Team Foundation Service与GIT一起用作源代码控制.

I'm trying to get a project to work with a continuous integration build. Currently, it consists of a library dll, .net 4.5 app, and WP8 app. I use team foundation service with GIT as my source control.

我能够设置构建配置,但失败,并显示以下消息:

I was able to set up a build configuration but it fails with the following message:

Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

这是整个解决方案中唯一的例外,尽管有10条警告.此外,我以诊断的详细程度运行了该构建,并且此处是该构建的输出.

This is the ONLY exception in the entire solution, although there are 10 warnings. Additionally, I've run the build with the verbosity to diagnostic and here is the output of that.

我再也看不到该版本的任何问题,只是隐晦的已完成项目.... --FAILED"消息.在本地,可以毫无问题地构建和重建项目.任何人都不知道是什么原因导致了此问题?

Again I don't see any issues with that build, just the cryptic "Done building project.... --FAILED" message. Locally, the project can be built and rebuilt without any issues. Anyone have any idea what might be causing this issue?

通过反复试验,我将问题缩小为在解决方案中使用Windows Phone 8应用程序.如果我排除该项目,则解决方案构建良好.如果包括在内,我会遇到问题.我应该为每个项目而不是为解决方案本身使用单独的构建定义吗? Windows Phone 8项目本身可以很好地构建...

Through trial and error I've narrowed the issue down to having a windows phone 8 application in my solution. If I exclude that project, the solution builds fine. If it's included, I get the problem. Should I perhaps be using a separate build definition for each project and not for the solution itself? Windows phone 8 projects by themselves build fine...

推荐答案

您正在获取的错误发生在您的构建定义所使用的构建模板中.生成模板是Windows工作流文件,可指导TFS生成完成给定生成的过程.您的项目在本地构建的原因是Visual Studio未使用此构建模板,因为构建模板仅在TFS Build下的服务器上运行.

The error you're getting is occurring within the build template that your build definition is using. Build templates are Windows Workflow files that guide TFS Build through the process of executing a given build. The reason why your project is building locally is that Visual Studio isn't using this build template, as build templates only run on the server under TFS Build.

我敢说有人定制了您的内部版本正在使用的内部版本模板,但是自定义失败了.基于该错误,它似乎是在执行CodeActivity的过程中发生的,现在已经过时了(尽管过时实际上并不是问题所在).但是,该CodeActivity中的自定义代码可能会失败.

I dare say someone has customised the build template that your build is using, and that customisation is failing. Based on the error, it seems to be happening during the execution of a CodeActivity, which is now obsolete (though being obsolete isn't actually the issue). The custom code in that CodeActivity is probably failing though.

假设您的构建过程不需要失败的构建模板提供的任何特定自定义,那么我只选择一个不同的或创建一个新的即可.编辑构建定义时,可以从处理"选项卡中执行此操作.

Assuming your build process doesn't need any specific customisations provided by the failing build template, I'd just select a different one or create a new one. You can do this from the Process tab when editing the build definition.

希望这会有所帮助!

这篇关于不能使用TF Service构建,可以在本地构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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