'Microsoft Git Provider and Visual Studio 2012 failed to start the configured compare tool
I'm working with most recent Visual Studio 2012 Update 2 and I have installed official Microsoft's Git support. But when I try to diff modified file studio screams:
Failed to start the configured compare tool.
But it seems there is no configuration for compare tool in Git provider! What should I do to solve the issue?
Maybe I'm missing something?
I've asked the same question in Q&A section in Visual Studio Tools for Git support forum, but no answer for now.
Solution 1:[1]
Restarting Visual Studio (2019) solved it.
Solution 2:[2]
If anyone lands on this question for the same issue (like I did), VS 2015 has ability to configure under Git Settings.
Solution 3:[3]
Make sure that you've set diff.tool for the git environment that visual studio uses. Normally you find this by starting Git bash from the start menu. If you use other git tools, you must set this for the global scope:
git config --global difftool.vs11.cmd "c:/program files (x86)/microsoft visual studio 11.0/common7/ide/devenv.exe" '//diff' "$LOCAL" "$REMOTE"
git config --global diff.tool vs11
Solution 4:[4]
I noticed that when you restart your VS (1), if you try to see the changes on a file that you didn't open/load, diff tool gets confused. For me restarting is the problem
My solution: Just open/load that file in VS, then try again.
(1): I am using VS2022 but seem like it happens for all versions
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | WiSeeker |
| Solution 3 | Per-Frode Pedersen |
| Solution 4 | boyukbas |

