Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tfs 构建在门中失败,但在本地构建良好_Tfs_Visual Studio 2013 - Fatal编程技术网

Tfs 构建在门中失败,但在本地构建良好

Tfs 构建在门中失败,但在本地构建良好,tfs,visual-studio-2013,Tfs,Visual Studio 2013,我的变更集一直未能通过dev gate构建 不幸的是,TFS构建没有给我任何线索,这是我得到的唯一例外: 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 Stac

我的变更集一直未能通过dev gate构建

不幸的是,TFS构建没有给我任何线索,这是我得到的唯一例外:

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)
我用谷歌搜索了它,对于那些引用博客的人:

  • 我不使用假货
  • 服务器有足够的内存
服务器已解决TFS 2012+更新1

我的一个测试项目的公共属性组中的此条目是问题:

<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
true
必须在测试项目(MS测试)中删除此元素

我用其他4个测试项目验证了它,但他们没有这个条目


我不知道为什么这个条目不被接受,但我的登机门再次接受了登机;-)

您是否尝试过使用MSBuild命令行在本地生成项目?如果这样做有效,请在构建代理上尝试相同的操作。当然,当我这样做时,会出现相同的消息,没有额外的细节。。我注意到,当使用UseHostCompilerIfAvailable=false时,我的本地MSBUILD运行正常。对生成定义应用此参数仍会返回MSBUILD错误。。。