How can I listen for the deletion of a ProjectItem via DTE?
Posted
by Will
on Stack Overflow
See other posts from Stack Overflow
or by Will
Published on 2010-05-14T20:02:51Z
Indexed on
2010/05/14
20:04 UTC
Read the original article
Hit count: 206
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?
© Stack Overflow or respective owner