2012-03-30 11 views

Antwort

3

ich das gleiche Problem mit einem VS10-Addin zugewandt und diese Lösung gefunden, hoffen, dass dies für Sie arbeitet auch ...

public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom) 
    { 
     _applicationObject = (DTE2)application; 
     _addInInstance = (AddIn)addInInst; 
     // Hook save changes event 

     _applicationObject.Events.DocumentEvents.DocumentSaved += DocumentEvents_DocumentSaved; 

    } 
+0

Das ist großartig! Vielen Dank! –