visual-studiovisual-studio-2022xunit

JetBrains Rider changed diff tool used in Visual Studio. How to undo?


I have been using Visual Studio 2022 Enterprise for a while (version 17.14.12 at the moment). When running unit tests, Verify.XUnitV3 used Visual Studio's internal diff tool when a test failed.

After installing JetBrains Rider (and not having used it yet), if a test verify in Visual Studio fails, the HetBrains Rider diff tool is opened. I don't want that.

How can I get the default Visual Studio diff tool back? I tried several suggestions (including asking AI for help), but so far nothing worked.


Solution

  • Someone gave me a tip (outside Stack Overflow), that pointed me into the right direction.

    Key is this documentation: Diff Tool Order

    I added an environment variable DiffEngine_ToolOrder with the value VisualStudio. That solved the problem.