Share via


ResourceExtensions.RequiresImageBuild(IResource) Method

Definition

Determines whether the specified resource requires image building.

public static bool RequiresImageBuild(this Aspire.Hosting.ApplicationModel.IResource resource);
static member RequiresImageBuild : Aspire.Hosting.ApplicationModel.IResource -> bool
<Extension()>
Public Function RequiresImageBuild (resource As IResource) As Boolean

Parameters

resource
IResource

The resource to evaluate for image build requirements.

Returns

True if the resource requires image building; otherwise, false.

Remarks

Resources require an image build if they provide their own Dockerfile or are a project.

Applies to