I'm running an on-prem TFS 2018 U2 and I want to use the latest MsBuild (currently - the one from Visual Studio 2019).
The way I do it right now is running the MsBuild Task with the location for the version of MsBuild that I want to run.
Is there a more elegant way to do that, preferably a TFS Task, that won't require knowing the exact location?