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

OnBeforeCloseProject([InAttribute] IVsHierarchy pHierarchy, [InAttribute] int fRemoved)

$
0
0

Hi All,

I am a developer of plugin for VS2012.  I am OnBeforeCloseProject([InAttribute] IVsHierarchy pHierarchy, [InAttribute] int fRemoved) call for my plugin. For my plugin operations i need check pHierarchy is project or website. Now currently i am using below function to test pHierarchy is project ot not 

if(pHierarchy is IVsSccProject2) 

{

then consider it is as a project.

}

Then I would like to check the phierarchy is website or not ? Could you please tell me the way ?

and also I observed that fremoved should come as 1 incase of delete project. But some times , I am receving fremoved=1 even incase of no deletiion of project. Could anyone explain this intermittent behavior ?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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