views:

26

answers:

1

I've got a designer that relies on the existence of other solution items. If one of those items is deleted the designer crashes and you have to edit as XML to fix. Not exactly user friendly.

I do, however, have the DTE object representing the instance of Visual Studio, as well as the ProjectItems I am dependent on.

Is it possible to, somewhere in the depths of the DTE, register a listener for the deletion of that ProjectItem? And, if so, How would I do it?

+1  A: 

Check out this FAQ article which explains how to register for ProjectItems events (including ItemDeleted).

Aaron Marten
Was never able to get it to work properly, but this is as close as I could get.
Will