question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nuget Installer looking for msbuild.exe on Mac

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jsauvexamarincommented, Oct 7, 2016

That was most definitely the correct workaround, provided that Mono 4.6.1.x is installed. Thanks @madhurig!

1reaction
ericsciplecommented, Oct 7, 2016

Sorry I see now that it’s the NuGet Installer task.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing NuGet client tools - Microsoft Learn
Guidance on installing client tools, the dotnet and nuget command-line interfaces (CLI), and the Package Manager for Visual Studio.
Read more >
Cake build fails on OS X, can't find msbuild.exe - Stack Overflow
By running build.sh -v "Diagnostic" you'll get an detailed log of how the NuGet command line is called for the restore operation.
Read more >
Bootstrapping Cross Platform MSBuild with XBuild and NuGet
Now bootstrapping it on the Mac/*nix is really simple: Install MSBuild NuGet; Invoke MSBuild with Mono, passing the actual MSBuild project ...
Read more >
NuGet packages in the Package Registry - GitLab Docs
Publish NuGet packages in your project's Package Registry. Then, install the packages whenever you need to use them as a dependency.
Read more >
NuGet Package - Dotfuscator Professional 6.5
MSBuild Requirements; Command Line Interface Requirements ... To install Dotfuscator with the NuGet package, you will need a way to install NuGet packages ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found