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

ItemPropertyChange2 VCProjectEngine event is not fired in VS 2013 preview

$
0
0

Hello,

I use the following code for tapping project rename for a C++ project from my VS extension.

void Init()
{
  vcProjectEvents = mDTE.Events.GetObject("VCProjectEngineEventsObject") as VCProjectEngineEvents;
  vcProjectEvents.ItemPropertyChange2 += new _dispVCProjectEngineEvents_ItemPropertyChange2EventHandler(OnVCProjectEngineItemPropertyChange);
}

void OnVCProjectEngineItemPropertyChange(Object item, string strPropertySheet, string strItemType, string PropertyName)
{
  if (PropertyName != "ProjectName")
    return;
  VCConfiguration vcConfig = item as VCConfiguration;
  if (null != vcConfig) 
  {
    VCProject vcProj = vcConfig.project as VCProject;
    if (null != vcProj)
    {
      //Do my stuff
    }
  }
}

Worked fine in VS 2010 and VS 2012 but in VS 2013 preview the notification is not fired. Has anyone encountered this?

Maybe a way around this issue?

Thanks





Viewing all articles
Browse latest Browse all 4410

Trending Articles



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