We made it so that VSWhere is always ran. This causes a problem when running on Mac and Linux, since VSWhere is not intended to be ran there, instead, we use XBuild there.
We should only attempt to resolve MSBuild using VSWhere, when we are running on Windows.
When we introduced this change:
https://github.com/chocolatey/Chocolatey.Cake.Recipe/issues/93
We made it so that VSWhere is always ran. This causes a problem when running on Mac and Linux, since VSWhere is not intended to be ran there, instead, we use XBuild there.
We should only attempt to resolve MSBuild using VSWhere, when we are running on Windows.