• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

TFS API MergeContent没有表现出合并工具返回false

用户头像
it1352
帮助1

问题说明

我呼吁一个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?

正确答案

#1

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

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.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcfhach
系列文章
更多 icon
同类精品
更多 icon
继续加载