TFS API MergeContent没有表现出合并工具返回false [英] TFS API MergeContent returns false without showing merge tool

查看:253
本文介绍了TFS API MergeContent没有表现出合并工具返回false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我呼吁一个TFS工作区(App.Instance.TFSWorspace在我的例子)的MergeContent方法,如下所示:

I am calling the MergeContent method on a TFS workspace (App.Instance.TFSWorspace in my example) as shown below:

bool result = App.Instance.TFSWorkspace.MergeContent(Conflict, true);

这会导致结果设置为false,但合并工具从未显示,即使第二个参数明确地指出使用外部合并工具。

This results in 'result' being set to false but the Merge Tool is never shown even though the second parameter explicity states to use the external merge tool.

在code原本放置在继MVVM模型RelayCommand。只是为了确保这不是我把它到后面的code和仍然发生同样的事情的问题。另外,我使用的是默认的TFS工具,我没有任何第三方比较/合并配置工具。

The code was originally placed in a RelayCommand following the MVVM model. Just to make sure this wasn't the issue I moved it into the code behind and the same thing still happens. Also, I'm using the default TFS tool, I don't have any 3rd party compare/merge tool configured.

有没有人有任何想法,为什么会发生这种事?

Does anyone have any idea why this would happen?

推荐答案

一对夫妇的潜在原因可能会发生:

A couple of potential reasons this may occur:


  1. diffmerge.exe是不是在你正在运行的程序的路径
    默认的外部合并工具在\\微软的Visual Studio 10.0 \\ Common7 \\ IDE(根据您的版本可能不同)diffmerge.exe找到。如果这是不是在你的程序的路径发生冲突时将无法启动diffmerge过程

  1. diffmerge.exe is not in the path of your running program The default external merge tool is diffmerge.exe found in \Microsoft Visual Studio 10.0\Common7\IDE (maybe different based on your version). If this is not in the path of your program it will fail to start the diffmerge process when a conflict occurs

程序没有一个用户界面外壳
如果你的程序是一个服务或Web应用程序可能出现这种情况。这可能不是你的情况,但我不是从描述

Program does not have a UI shell This can occur if your program is a service or web app. This may not be the case for you but I was not completely sure from the description

最有可能的问题是上面的#1。我会检查,第一。

Most likely the issues is #1 above. I would check that first.

这篇关于TFS API MergeContent没有表现出合并工具返回false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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