It's possible to intercept the project save event in visual studio 2017 sdk?
UPDATE
I'm currently developing an extension of visual studio 2017 where I need to know when any change is persisted.
Ex: When I add a new reference in the project (I know there are events for when the reference is added / changed / removed but did not meet my need), the project is marked as pending to be saved. I need to intercept it when it's saved (better if it is before saving).
I tried the Dte.Events.DocumentEvents.DocumentSaved
event, but it is not triggered in the save project; DTE.Events.SolutionEvents
and DTE.Events.SolutionItemEvents
have no event of the type I need.
It is possible?
The correct one in this case would be to use implement
IVsRunningDocTableEvents3
overriding theOnBeforeSave
method.In this way, I know exactly when a project is to be saved and perform what it needs.
Ex.: