ProjectImportedEventArgs Class

Summary

Arguments for the project imported event.
Namespace
Microsoft.Build.Framework
Base Types
  • BuildMessageEventArgs
graph TD Base0["BuildMessageEventArgs"]-->Type Type["ProjectImportedEventArgs"] class Type type-node

Syntax

public class ProjectImportedEventArgs : BuildMessageEventArgs

Constructors

Name Summary
ProjectImportedEventArgs() Initializes a new instance of the ProjectImportedEventArgs class.
ProjectImportedEventArgs(int, int, string, object[]) Initializes a new instance of the ProjectImportedEventArgs class.

Properties

Name Value Summary
ImportedProjectFile string
Gets or sets the full path to the project file that was imported. Will be
null
if the import statement was a glob and no files matched, or the condition (if any) evaluated to false.
ImportIgnored bool
Gets or sets if this import was ignored. Ignoring imports is controlled by
ProjectLoadSettings
. This is only set when an import would have been included but was ignored to due being invalid. This does not include when a globbed import returned no matches, or a conditioned import that evaluated to false.
UnexpandedProject string
Gets or sets the original value of the Project attribute.