Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

SDK Package: Is there a way to create custom handler for copy/paste of ProjectItem

$
0
0

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.



Viewing all articles
Browse latest Browse all 4410

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>