Export (0) Print
Expand All

Project Members

Represents a project that can be built using MSBuild.

The following tables list the members exposed by the Project type.

  Name Description
Public method Project Overloaded. Initializes a new instance of the Project class.
Top

  Name Description
Public property BuildEnabled Gets or sets a value indicating whether the project is enabled for building tasks and targets.
Public property DefaultTargets Gets or sets the DefaultTargets attribute of the Project element in the MSBuild project.
Public property Encoding Gets the encoding for the project file.
Public property EvaluatedItems Gets a collection of the items evaluated during the build.
Public property EvaluatedItemsIgnoringCondition Gets a collection of all items in a project, even those not used in the build process because a Condition attribute evaluated to false.
Public property EvaluatedProperties Gets a collection of the properties evaluated during the build.
Public property FullFileName Gets or sets the fully qualified path and file name of the project file.
Public property GlobalProperties Gets or sets a collection of the global properties for the project.
Public property Imports Gets the projects imported into this project.
Public property InitialTargets Gets or sets the InitialTargets attribute of the Project element in the MSBuild project.
Public property IsDirty Gets a value indicating whether the project has changed and needs to be saved to a file.
Public property IsValidated Gets a value indicating whether the project is to be validated against a schema.
Public property ItemGroups Gets a collection of the item groups specified with the ItemGroup element in the project.
Public property ParentEngine Gets the Engine that builds the project.
Public property PropertyGroups Gets a collection of the property groups specified with the PropertyGroup element in the project.
Public property SchemaFile Gets or sets the XML schema file to use when validating the project.
Public property Targets Gets the targets in the project.
Public property TimeOfLastDirty Gets a DateTime object indicating the time the project was last changed in a way that required it to be saved to a file.
Public property UsingTasks Gets a collection of the UsingTask elements in the project.
Public property Xml Gets the XML representing the project.
Top

(see also Protected Methods )
  Name Description
Public method AddNewImport Add an Import element to the end of the project.
Public method AddNewItem Overloaded. Adds the specified Item element to the project.
Public method AddNewItemGroup Adds a new ItemGroup element to the project.
Public method AddNewPropertyGroup Adds a new PropertyGroup element to the project.
Public method AddNewUsingTaskFromAssemblyFile Adds a new UsingTask element with the specified assembly file.
Public method AddNewUsingTaskFromAssemblyName Adds a new UsingTask element with the specified assembly name.
Public method Build Overloaded. Builds the project.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetConditionedPropertyValues Returns a list of possible values for the specified property.
Public method GetEvaluatedItemsByName Returns all evaluated items belonging to the specified item collection.
Public method GetEvaluatedItemsByNameIgnoringCondition Returns all items belonging to the specified item collection.
Public method GetEvaluatedProperty Returns the value of the specified property.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetProjectExtensions Returns a string value of the XML from the specified element in the ProjectExtensions element.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Load Overloaded. Loads the contents of a project file into the Project object.
Public method LoadXml Loads the contents of the specified string into the Project object.
Public method MarkProjectAsDirty Sets the IsDirty property of the project to true.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method RemoveAllItemGroups Removes all item groups from the project, but does not modify imported projects.
Public method RemoveAllPropertyGroups Removes all property groups from the project, but does not modify imported projects.
Public method RemoveItem Removes the specified item from the project.
Public method RemoveItemGroup Removes the specified item group from the project.
Public method RemoveItemGroupsWithMatchingCondition Removes all item groups with the specified condition from the project, but does not modify imported projects.
Public method RemoveItemsByName Removes all items in the specified item collection from the project, but does not modify imported projects.
Public method RemovePropertyGroup Removes the specified property group from the project.
Public method RemovePropertyGroupsWithMatchingCondition Removes all property groups with the specified condition from the project, but does not modify imported projects.
Public method ResetBuildStatus Resets the status every target in the project so that the next build will build all targets again.
Public method Save Overloaded. Saves the project to a file.
Public method SetImportedProperty Overloaded. Sets the value of a property in an imported project.
Public method SetProjectExtensions Sets the ProjectExtensions element of the project with the specified element name and content.
Public method SetProperty Overloaded. Sets the value of the specified property.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft