Nuget Installer looking for msbuild.exe on Mac
See original GitHub issueI have a Xamarin.Android build that was working fine for many days. Then it suddenly started failing on the Nuget Restore (Installer) task with the following:
https://gist.github.com/jsauvexamarin/1bb9c3242b40560023e3588ab7c1e2d0#file-gistfile1-txt-L134
Indeed MSBuild.exe
does not exist at that location because this is a Mac build agent. xbuild.exe
, however, does indeed live at that location and is what I would think is the correct executable when running on a Mac.
I couldn’t find the change in the Nuget Installer task that may have caused this.
I’ve had changes to tasks break my builds other times in past. Have the VSTS agent / task teams considered implementing task versioning? As in: when you add a task to a build def, it is automatically given the latest version of a task. And the referenced version of the task would stay locked, unless manually adjusted. That way, when the VSTS agent team updates a task in a way that breaks builds for customers, that break will not affect CI processes that have been otherwise working great. You could even include a setting in the task to allow auto-updating of the version, so that if someone WANTS to accept possibly-breaking changes (and improvements) to their build process, they can.
Issue Analytics
- State:
- Created 7 years ago
- Comments:23 (9 by maintainers)
Top GitHub Comments
That was most definitely the correct workaround, provided that Mono 4.6.1.x is installed. Thanks @madhurig!
Sorry I see now that it’s the NuGet Installer task.