After replacing the existing build servers at one of my customers, some build started to fail with the following error message:
Unable to determine the location of vstest.console.exe ---> System.IO.FileNotFoundException: Unable to determine the location of vstest.console.exe
When looking at the build tasks, I noticed they were still trying to use Visual Studio 2015 to run their tests:
On this new server we only had Visual Studio 2017 and 2019 installed, so Visual Studio 2015 was a ‘no-go’. To fix it, we changed the VSTest version to ‘Latest’: