Bug 10319 - MonoDevelop MDTool BeforeBuild bug
Summary: MonoDevelop MDTool BeforeBuild bug
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-02-15 08:24 UTC by Allie Miller
Modified: 2015-08-25 05:53 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Allie Miller 2013-02-15 08:24:09 UTC
Using MonoTouch with NuGet for dependencies (internal also) and TeamCity
for CI. I'm using mdtool to build from the command line.

I do a NuGet package restore before the build, to ensure all dependencies
are available. I do this using the BeforeBuild custom command.

This works fine with local MonoDevelop builds. Though there is the issue that builds are not performed when the code isn't 'dirty'. Though the dependencies may be 'dirty'. BeforeBuild seems to behave like BeforeCompile?

The main problem is when using mdtool. Although the BeforeBuild event does happen before the compile, it seems that the fact that dependencies were missing at the very start of the build (and duely restored in the BeforeBuild event) is remembered when the compile is started. This means I have to do (for now) an extra explicit package restore on the build server, before calling mdtool.
Comment 1 Lluis Sanchez 2015-08-25 05:53:35 UTC
That's not really supported anymore. You should use xbuild targets for this.