locked
ItemPropertyChange2 VCProjectEngine event is not fired in VS 2013 preview RRS feed

  • Question

  • 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




    Thursday, August 8, 2013 1:44 PM

Answers

All replies