I am working on a SDK Package for VS2010 that contains some custom project items, and I would like to handle copy/paste of these items in Solution Explorer. The nearest I've come to a solution is to handle ProjectItemsEvents.ItemAdded, and from there try to determine if the item added was pasted from a copy of an existing item, then manipulate the item as necessary. This is a messy solution that seems to reek of bad code smell to me, and I would hope/expect that there might be a better way.
Is there any way to determine when a project item is copied and/or pasted? Best case would probably be to capture the copying of it and do what I need to do then, prior to it being pasted.
Thanks in advance.