次の方法で共有


MSBuild.RunEachTargetSeparately Property

Definition

When this is true, instead of calling the engine once to build all the targets (for each project), we would call the engine once per target (for each project). The benefit of this is that if one target fails, you can still continue with the remaining targets.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 property bool RunEachTargetSeparately { bool get(); void set(bool value); };
public bool RunEachTargetSeparately { get; set; }
public bool RunEachTargetSeparately { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.RunEachTargetSeparately : bool with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.RunEachTargetSeparately : bool with get, set
Public Property RunEachTargetSeparately As Boolean

Property Value

true if the MSBuild task invokes each target in the list passed to MSBuild one at a time; false if the MSBuild task invokes all targets in the list at the same time.

Attributes

Remarks

Setting this property to true guarantees that subsequent targets are invoked even if previously invoked targets failed. Otherwise, a build error would stop invocation of all subsequent targets. The default value is false.

Applies to