Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
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.
That's not really supported anymore. You should use xbuild targets for this.