Partilhar via


BuildResult Class

Definition

Contains the current results for all of the targets which have produced results for a particular configuration.

public ref class BuildResult
public class BuildResult
type BuildResult = class
Public Class BuildResult
Inheritance
BuildResult

Remarks

When modifying serialization/deserialization, bump the version and support previous versions in order to keep Microsoft.Build.BackEnd.ResultsCache backwards compatible.

Constructors

BuildResult()

Constructor for serialization.

Properties

BuildRequestDataFlags

Gets the flags that were used in the build request to which these results are associated. See BuildRequestDataFlags for examples of the available flags.

CircularDependency

Returns a flag indicating if a circular dependency was detected.

ConfigurationId

Returns the configuration ID for this result.

Exception

Returns the exception generated while this result was run, if any.

GlobalRequestId

Returns the build request id for which this result was generated

Item[String]

Indexer which sets or returns results for the specified target

NodeRequestId

Returns the node build request id for which this result was generated

OverallResult

Returns the overall result for this result set.

ParentGlobalRequestId

Returns the build request id for the parent of the request for which this result was generated

ProjectStateAfterBuild

ProjectInstance state after the build. In general, it may be a non buildable-dummy object, and should only be used to retrieve Properties, GlobalProperties and Items from it. Any other operation is not guaranteed to be supported.

ResultsByTarget

Returns an enumerator for all target results in this build result

SubmissionId

Returns the submission id.

Methods

AddResultsForTarget(String, TargetResult)

Adds the results for the specified target to this result collection.

HasResultsForTarget(String)

Determines if there are any results for the specified target.

MergeResults(BuildResult)

Merges the specified results with the results contained herein.

Applies to