[MonoDevelop] add-in pre build event

Daniel Hughes trampster at gmail.com
Wed Jun 17 21:31:43 UTC 2015

Thanks for your reply Matt,

That's the info that I was looking for.

Regarding NuGet, Doing it on opening the solution makes a lot of sense
as you describe for a lot of people. However at the place I work we
use nuget to deploy fast changing internal dependencies (multiple new
versions per day).

Our build server detects the new versions and updates the
packages.config to use the new versions, when then pull from our
source control (with our solution still open) we then need the restore
to run before build. In Visual Studio this happen automatically before

Having to reload our solutions in order to pick up new dependency
versions many times a day would be a pain. The solution I'm working on
at the moment has been open for three days, meaning my packages will
be 3 days and many, many versions out of date.


On Wed, Jun 17, 2015 at 8:43 PM, Matt Ward <ward.matt at gmail.com> wrote:
> The NuGet addin in MonoDevelop 5 restores NuGet packages when the solution
> is opened. There is an option in Preferences that you can use to disable or
> enable this. It was decided to do the restore on opening the solution
> instead of pre-build since the assemblies are then made available for code
> completion as soon as possible.
> The ProjectService has a BuildStarted event which you could use to trigger
> some pre-build logic.
> On 17 June 2015 at 06:27, Daniel Hughes <trampster at gmail.com> wrote:
>> I'm trying to implement a mono develop add-in for a package manager
>> which will restore packages on before a build.
>> I've had a look at:
>> http://www.monodevelop.com/developers/articles/extension-tree-reference/
>> But am struggling to identify the extension point to use to get a pre
>> build event.
>> Does anyone know what extension point I need and also does anyone know
>> of an add-in which hooks the pre-build to perform an action, that I
>> can use as an example.
>> I already looked at the nuget addin but that doesn't yet do a restore
>> in a pre build hook. This is going to be a problem for nuget in the
>> future because the recommended way of using nuget is to run the
>> restore prebuild in a IDE hook, rather then the old
>> MSBuild-Integrated package restore. People are going to start
>> complaining that their visual studio solutions setup for automatic
>> package restore don't work in Mono Develop. However that is an aside
>> and is a problem for another day.
>> Cheers,
>> Daniel
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list

More information about the Monodevelop-list mailing list