Export (0) Print
Expand All

ProjectInstance Methods

The ProjectInstance type exposes the following members.

  Name Description
Public method AddItem(String, String) Adds an item with no metadata to the project.
Public method AddItem(String, String, IEnumerable<KeyValuePair<String, String>>) Adds an item with the given metadata to the project.
Public method Build() Builds the default targets of the project with loggers of the project collection.
Public method Build(IEnumerable<ILogger>) Builds the default targets of the project with the given loggers.
Public method Build(IEnumerable<ILogger>, IEnumerable<ForwardingLoggerRecord>) Builds the default targets of the project with the given loggers and remote loggers.
Public method Build(String, IEnumerable<ILogger>) Builds the given target of the project with the given loggers.
Public method Build(String[], IEnumerable<ILogger>) Builds the given targets of the project with the given loggers.
Public method Build(String, IEnumerable<ILogger>, IEnumerable<ForwardingLoggerRecord>) Builds the given target of the project with the given loggers and remote loggers.
Public method Build(String[], IEnumerable<ILogger>, IDictionary<String, TargetResult>) Build a list of targets with specified loggers. Targets may be null. Loggers may be null.
Public method Build(String[], IEnumerable<ILogger>, IEnumerable<ForwardingLoggerRecord>) Builds the given targets of the project with the given loggers and remote loggers.
Public method Build(String[], IEnumerable<ILogger>, IEnumerable<ForwardingLoggerRecord>, IDictionary<String, TargetResult>) Builds the given targets with the given target outputs and with the given loggers and remote loggers.
Public method DeepCopy() Creates an independent, deep clone of this project and everything in it. Clone has the same mutability as the original. Useful for compiling a single file or for keeping build results between builds.
Public method DeepCopy(Boolean) Creates an independent, deep clone of this project and everything in it, with specified mutability. Useful for compiling a single file or for keeping build results between builds.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method EvaluateCondition Evaluates the provided string as a condition by expanding items and properties, using the current items and properties available, then doing a logical evaluation.
Public method ExpandString Evaluates the provided string by expanding items and properties, using the current items and properties available.
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 Static member GetEvaluatedItemIncludeEscaped(ProjectItemDefinitionInstance) Gets the evaluated, escaped value of the Include attribute of the provided item definition.
Public method Static member GetEvaluatedItemIncludeEscaped(ProjectItemInstance) Gets the evaluated, escaped value of the Include attribute of the provided item.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetItems Gets all the items in this project of the specified type. This is a read-only list.
Public method GetItemsByItemTypeAndEvaluatedInclude Gets all the items in this project of the specified type and evaluated include value. This is a read-only list.
Public method Static member GetMetadataValueEscaped(ProjectMetadataInstance) Gets the escaped value of the provided metadatum.
Public method Static member GetMetadataValueEscaped(ProjectItemDefinitionInstance, String) Gets the escaped value of the metadatum with the provided name of the provided item definition.
Public method Static member GetMetadataValueEscaped(ProjectItemInstance, String) Gets the escaped value of the metadatum with the provided name on the provided item.
Public method GetProperty Get the property with the given name.
Public method GetPropertyValue Get the value of the property with the given name.
Public method Static member GetPropertyValueEscaped Get the escaped value of the provided property.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveItem Removes an item from the project, if present. Returns true if it was present, false otherwise.
Public method RemoveProperty Removes a property with the given name. Returns true if the property had a value (possibly empty string), otherwise false.
Public method SetProperty Add a property with the specified name and value to the project. Overwrites any property with the same name already in the property collection.
Public method ToProjectRootElement Creates a ProjectRootElement from the contents of this ProjectInstance.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UpdateStateFrom Replaces the project state GlobalProperties, Properties and Items with those from the specified ProjectInstance.
Top
Show:
© 2014 Microsoft