Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4619832
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:28:40+00:00 2026-05-22T02:28:40+00:00

When you compare two versions of MS Word doc/Excel book in Team Foundation Server

  • 0

When you compare two versions of MS Word doc/Excel book in Team Foundation Server Source Explorer, the result is the boring “Binary filles differ” dialog.

It does not have to be that way though. The relevant apps (Word/Excel) have an excellent built-in diff interface. You can witness it when you work with versioning-enabled SharePoint file library and do compare with a previous version. Also, TortoiseSVN brings it up when you do diffs.

Question – can I enable this in TFS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:28:41+00:00Added an answer on May 22, 2026 at 2:28 am

    You can configure comparison (diff) and merge tools per file type (extension). This is available via Tools -> Options -> Source Control -> Visual Studio Team Foundation Server -> Configure User Tools” button or via the command-line with tf diff /configure

    In order to set up a comparison tool, you’ll specify the extension (use .* if you want it to be used for all files not otherwise specified), the operation you’re setting up (Compare or Merge), the command to invoke and the arguments to the command. For arguments, the variables available for use are the following:

    %1 = Original file (in diff, the pre-changes file, in merge, the "server" or "theirs" file, the file that is the base file after "their" changes were applied)
    %2 = Modified file (in diff, the post-changes file, in merge the "yours" file - the base file with "your" changes applied)
    %3 = Base file (in the 3-way merge operation, the file which both "theirs" and "yours" are derived from - the common ancestor.  This doesn't mean it's the version the changes were based from, since this may be a cherry-pick merge)
    %4 = Merged file (The output file for the merge operation - the filename that the merge tool should write to)
    %5 = Diff options (any additional command-line options you want to pass to your diff tool - this comes into play only when using "tf diff /options" from the command-line)
    %6 = Original file label (The label for the %1 file)
    %7 = Modified file label (The label for the %2 file)
    %8 = Base file label (The label for the %3 file)
    %9 = Merged file label (The label for the %4 file)
    

    To use TortoiseSVN — which seems like it does what you want — you would specify the command as the file path to TortoiseMerge.exe

    For comparisons, specify the arguments: /base:%1 /mine:%2 /basename:%6 /minename:%7

    For merges, specify the arguments: /base:%3 /mine:%2 /theirs:%1 /basename:%8 /minename:%7 /theirsname:%6 /merged:%4 /mergedname:%9

    This and other information on the arguments for various merge tools (including other word comparison tools like DiffDoc.exe) can be found on James Manning’s MSDN blog. You may also find use in another stackoverflow question on invoking the word comparison tool from the command line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In excel 2010, I have to compare two versions (old, new) of the same
I want to compare two versions of various properties and bold one of them
I would like to compare two versions of a class. I have used WinDiff,
I am using difflib to compare files in two directories (versions from consecutive years).
In Word, there is an option to compare two documents and find out the
I want to compare two objects of different versions and display their differences in
I need to load two versions of the same DLL in order to compare
I have a table in which I compare the two versions of a selected
Is there any way to compare lines of code between two clearcase versions ,
i am using SQL Compare to compare two versions of a database. it keeps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.