We have two installations of visual studio on a windows agent, vs2017 and vs2013. We would like to be able to select one or the other in a particular build. This can be done on a command line easily but we are using an MSBuild plugin in our steps. It seems that it uses system PATH to select which one to run. There is a plugin configuration where we can set which to use but we want to do it on a per build basis. Is that possible?
@waldemar yes, it's possible. You can use variable as the path, see below page:
You can define the path like:
${vars.get("msBuildPath")}
and set the value of variable msBuildPath in your configurations separately.