Export (0) Print
Expand All

Project Methods

The Project type exposes the following members.

  Name Description
Public method AddNewImport Add an Import element to the end of the project.
Public method AddNewItem(String, String) Adds the specified Item element to the project.
Public method AddNewItem(String, String, Boolean) 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() Builds the default targets of the project.
Public method Build(String) Builds the specified target in the project.
Public method Build(String[]) Builds the specified list of targets in the project.
Public method Build(String[], IDictionary) Builds the specified list of targets in the project, and returns the outputs of the targets.
Public method Build(String[], IDictionary, BuildSettings) Builds the specified list of targets in the project using the specified settings, and returns the outputs of the targets.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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 the default hash function. (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(String) Loads the contents of the specified project file into the Project object.
Public method Load(TextReader) Loads the contents of the specified TextReader into the Project object.
Public method Load(String, ProjectLoadSettings) Reads the contents of this project from a project XML file on disk.
Public method Load(TextReader, ProjectLoadSettings) Reads the contents of this project from a string containing the XML contents.
Public method LoadXml(String) Loads the contents of the specified string into the Project object.
Public method LoadXml(String, ProjectLoadSettings) Reads the contents of this project from a string containing the XML contents.
Public method MarkProjectAsDirty Sets the IsDirty property of the project to true.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (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 RemoveImportedPropertyGroup Removes the specified property group from the main project file.
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(String) Removes all property groups with the specified condition from the project, but does not modify imported projects.
Public method RemovePropertyGroupsWithMatchingCondition(String, Boolean) Removes all <PropertyGroup>'s from the main project file that have a specific "Condition."
Public method ResetBuildStatus Resets the status every target in the project so that the next build will build all targets again.
Public method Save(String) Saves the project to the specified file.
Public method Save(TextWriter) Saves the project in the specified TextWriter object.
Public method Save(String, Encoding) Saves the project in the specified file with the specified encoding.
Public method SetImportedProperty(String, String, String, Project) Sets the value of a property in the specified imported project.
Public method SetImportedProperty(String, String, String, Project, PropertyPosition) Sets the value of a property in the specified imported project.
Public method SetImportedProperty(String, String, String, Project, PropertyPosition, Boolean) Sets the value of a property in the specified imported project.
Public method SetProjectExtensions Sets the ProjectExtensions element of the project with the specified element name and content.
Public method SetProperty(String, String) Sets the value of the specified property.
Public method SetProperty(String, String, String) Sets the value of the specified property.
Public method SetProperty(String, String, String, PropertyPosition) Sets the value of the specified property.
Public method SetProperty(String, String, String, PropertyPosition, Boolean) Sets the value of the specified property.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2014 Microsoft