ProjectCollection.ProjectXmlChanged 事件

定义

当更改该事例包含的 ProjectRootElement 时引发。Raised when a ProjectRootElement contained by this instance is changed.

public:
 event EventHandler<Microsoft::Build::Evaluation::ProjectXmlChangedEventArgs ^> ^ ProjectXmlChanged;
public event EventHandler<Microsoft.Build.Evaluation.ProjectXmlChangedEventArgs> ProjectXmlChanged;
member this.ProjectXmlChanged : EventHandler<Microsoft.Build.Evaluation.ProjectXmlChangedEventArgs> 
Public Event ProjectXmlChanged As EventHandler(Of ProjectXmlChangedEventArgs) 

注解

对于全局属性的更改或任何不实际更新 XML 的其他更改,不会引发此事件。This event is NOT raised for changes to global properties, or any other change that doesn't actually dirty the XML.

适用于