如何将Visual Studio(TFS)配置为使用BeyondCompare3(对于xml文件而言已损坏) [英] How to configure Visual Studio (TFS) to use BeyondCompare3 (broken for xml files)

查看:122
本文介绍了如何将Visual Studio(TFS)配置为使用BeyondCompare3(对于xml文件而言已损坏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了BeyondCompare网站上的指令(也已参考)在此SO问题)中配置VS2010(TFS ),以使用超越比较"来比较源代码管理.这种方法似乎被打破了.左侧视图(来自服务器)中的文件在BC3中根本没有出现,并且报告了Conversion Error.

I used the instructions on the BeyondCompare website (also referenced in this SO question) to configure VS2010 (TFS) to compare source control using Beyond Compare. This approach appears to be broken. The file in the left-hand view (from the server) does not appear at all in BC3, and a Conversion Error is reported.

进一步检查时,我注意到Visual Studio在从源代码管理(即先前的版本)提供文件时生成的文件名看起来像这样:filename.xml;C1956.文件名中有一个分号,作为原始文件名和转速编号之间的分隔符.这使BC3感到困惑.为了确认这一点,我获取了该文件的服务完好的版本(该文件暂时存储在\AppData\Local\Temp\TFSTemp\中),并将其重命名,删除了分号. BC3加载它就好了.但是当我把分号放回去时,Conversion Error返回了.

Upon further inspection, I noticed that the filename generated by Visual Studio when serving up the file from the source control (i.e., the previous revision) looks like this: filename.xml;C1956. There is a semicolon in the filename, as a delimiter between the original filename and the rev number. This is confusing BC3. To confirm this, I took the served-up version of the file (which gets stored temporarily in \AppData\Local\Temp\TFSTemp\), and renamed it, removing the semicolon. BC3 loaded it just fine. But when I put the semicolon back in, the Conversion Error returned.

更新:经过进一步测试,我意识到这只是XML文件的问题.如果我使用其他扩展名重命名该文件,则BC3会很好地加载它.

UPDATE: Upon further testing, I realize this is only an issue with XML files. If I rename the file with a different extension, BC3 loads it just fine.

有人发现了解决方法吗?

Has anybody discovered a workaround for this?

推荐答案

发现(与非常高效的ScooterSoftware支持部门联系后),问题出在XML格式插件上.在BC3中,在工具"->文件格式"下,我禁用(未选中)以下格式化程序: * XML整理 *整理属性的XML 分号文件然后显示就好了.这些格式化程序使用来自 http://tidy.sourceforge.net 的免费软件转换器HtmlTidy.我尚未确定此插件的较新版本是否会有所帮助.现在,我刚刚将它们关闭(在这种情况下可以使用,因为Visual Studio xml已经很整洁"了.)

Turns out (after contacting the very efficient ScooterSoftware support desk) the problem was with the XML formatting plugins. In BC3, under Tools -> File Formats, I disabled (unchecked) the following formatters: * XML Tidied * XML Tidied with Attributes Sorted The semicolon-file then displayed just fine. These formatters use the freeware converter, HtmlTidy, from http://tidy.sourceforge.net. I haven't determined whether a newer version of this plugin might help. For now I've just turned them off (which works for this situation because the visual studio xml is already "tidy".)

这篇关于如何将Visual Studio(TFS)配置为使用BeyondCompare3(对于xml文件而言已损坏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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