[MonoDevelop] add-in pre build event
Daniel Hughes
trampster at gmail.com
Thu Jun 18 00:53:33 UTC 2015
OK, I think I'm starting to get it.
I need to get a hook into an extension point which happens before any
build can occur. Then use that code to register for the StartBuild
event.
On Thu, Jun 18, 2015 at 11:06 AM, Daniel Hughes <trampster at gmail.com> wrote:
> OK now I'm even more confused. That's a link to an event in the
> monodevelop source not a addin extension point.
>
> On Thu, Jun 18, 2015 at 10:56 AM, Matt Ward <ward.matt at gmail.com> wrote:
>> Sorry I was looking at the SharpDevelop branch of one of my addins :)
>>
>> There is a StartBuild event in MonoDevelop:
>>
>> IdeApp.ProjectOperations.StartBuild
>>
>> On 17 June 2015 at 23:25, Daniel Hughes <trampster at gmail.com> wrote:
>>>
>>> I cannot find the BuildStarted extension point in:
>>>
>>>
>>> http://www.monodevelop.com/developers/articles/extension-tree-reference/#monodevelop-project-services
>>>
>>> Is it out of date/not complete. And if so how does one go about
>>> discovering these extension points?
>>>
>>> On Thu, Jun 18, 2015 at 10:24 AM, Matt Ward <ward.matt at gmail.com> wrote:
>>> > In Xamarin Studio you could right click the solution, select Restore
>>> > NuGet
>>> > Packages and then build. You would not need to re-open the solution each
>>> > time. It is not automatic though.
>>> >
>>> > On 17 June 2015 at 22:31, Daniel Hughes <trampster at gmail.com> wrote:
>>> >>
>>> >> 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
>>> >> build.
>>> >>
>>> >> 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.
>>> >>
>>> >> Cheers,
>>> >> Daniel
>>> >>
>>> >>
>>> >>
>>> >> 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