SdkResultFactory.IndicateFailure Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>