Bagikan melalui


SdkResultFactory.IndicateFailure Method

Definition

Create an SdkResolver object indicating failure resolving the SDK.

public abstract Microsoft.Build.Framework.SdkResult IndicateFailure (System.Collections.Generic.IEnumerable<string> errors, System.Collections.Generic.IEnumerable<string> warnings = default);
abstract member IndicateFailure : seq<string> * seq<string> -> Microsoft.Build.Framework.SdkResult
Public MustOverride Function IndicateFailure (errors As IEnumerable(Of String), Optional warnings As IEnumerable(Of String) = Nothing) As SdkResult

Parameters

errors
IEnumerable<String>

Errors / reasons the SDK could not be resolved. Will be logged as a build error if no other SdkResolvers were able to indicate success.

warnings
IEnumerable<String>

Returns

Applies to