【问题标题】:How to compare two XML files in visual studio 2010如何在 Visual Studio 2010 中比较两个 XML 文件
【发布时间】:2012-03-20 18:34:03
【问题描述】:

如何在 Visual Studio 2010 中比较两个 xml 文件?我看到一些程序员使用工具比较 XML 文件,但不知道该工具是哪个。

【问题讨论】:

    标签: xml visual-studio-2010 c#-4.0


    【解决方案1】:

    当您的文件位于团队基础服务器中时,比较两个文件开箱即用。这会在上下文菜单中添加“比较...”。您可以使用上面的 blog.paulbouwer.com 链接,但我会推荐 James 的博客,它涵盖了几乎所有可能的差异和合并工具 http://blogs.msdn.com/b/jmanning/archive/2006/02/20/diff-merge-configuration-in-team-foundation-common-command-and-argument-values.aspx 上面提到的 winmerge 和 code compare 工具本身不识别 xml,我发现 stylus studio 承诺 xml 处理http://www.stylusstudio.com/xml_diff.html

    【讨论】:

      【解决方案2】:

      对我来说,WinMerge 是我发现比较文件的最佳工具。它也可以在 Visual Studio 中用于比较文件(源代码、至少是 XML……)。

      查看:http://winmerge.org/

      提示将其集成到 Visual Studio 中(并替换内置的 diff 工具):http://blog.paulbouwer.com/2010/01/31/replace-diffmerge-tool-in-visual-studio-team-system-with-winmerge/

      【讨论】:

        【解决方案3】:

        检查这个:Code Compare

        此工具自动集成在 VS 2010 中。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2015-04-16
          • 2012-07-08
          • 1970-01-01
          • 2016-11-30
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多