Partilhar via


SdkResolver.Resolve Method

Definition

Resolves the specified SDK reference.

public:
 abstract Microsoft::Build::Framework::SdkResult ^ Resolve(Microsoft::Build::Framework::SdkReference ^ sdkReference, Microsoft::Build::Framework::SdkResolverContext ^ resolverContext, Microsoft::Build::Framework::SdkResultFactory ^ factory);
public abstract Microsoft.Build.Framework.SdkResult Resolve (Microsoft.Build.Framework.SdkReference sdkReference, Microsoft.Build.Framework.SdkResolverContext resolverContext, Microsoft.Build.Framework.SdkResultFactory factory);
abstract member Resolve : Microsoft.Build.Framework.SdkReference * Microsoft.Build.Framework.SdkResolverContext * Microsoft.Build.Framework.SdkResultFactory -> Microsoft.Build.Framework.SdkResult
Public MustOverride Function Resolve (sdkReference As SdkReference, resolverContext As SdkResolverContext, factory As SdkResultFactory) As SdkResult

Parameters

sdkReference
SdkReference

A SdkReference containing the referenced SDKs be resolved.

resolverContext
SdkResolverContext

Context for resolving the SDK.

factory
SdkResultFactory

Factory class to create an SdkResult

Returns

An SdkResult containing the resolved SDKs or associated error / reason the SDK could not be resolved. Return null if the resolver is not applicable for a particular SdkReference.

Remarks

Note: You must use SdkResultFactory to return a result.

Applies to