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

How to catch the source file path when invoking OnAfterAddFilesEx or OnQueryAddFiles?

$
0
0

Hi Guys,

We are working for a VS package, the requirment is to implement more behavior when click'Add Existing Item...'(C# Unit test project -->Solution explorer-->right click project-->choose 'Add'-->choose 'Add Existing Item...'), so that we inheritIVsTrackProjectDocumentsEvents2, and override method OnAfterAddFilesEx/OnQueryAddFiles.

The question is how to get the source file path inOnAfterAddFilesEx or OnQueryAddFiles?

For example, if we add existing file 'c:\abc.xml'into project, through rgpszMkDocuments[i] we can get the target project file path('C:\Users\Unisys\Documents\visual studio 2013\Projects\UnitTestProject1\UnitTestProject1\abc.xml'), whilehow to catch path 'c:\abc.xml'?


Thanks in advanced!



Viewing all articles
Browse latest Browse all 4410

Trending Articles



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