ResourceExtensions.RequiresImageBuild(IResource) 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.
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.