I'm writing a script in python to build a solution file and report the number of errors and warnings automatically, for all configuration and platforms. Currently, I rely on the fact that the user provide the location of the msbuild which I can use to build the project. Is there an automated way of finding the location of the latest msbuild.exe in the machine the script is run?
Note that the test machines keep changing and the location of the latest msbuild.exe might be (mostly it's not) different on each. Also, the PATH variable is usually not set for msbuild.exe in the test machines.