Skip to content
Docs Try Aspire
Docs Try

PerlAppResource.withCarton

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.4.0
interface PerlAppResource {
// ... omitted for brevity
withCarton(): PerlAppResource;
}

Signature

method withCarton builder
Configures the Perl application to use Carton as its package manager. Carton manages dependencies via `cpanfile` and a lock file (`cpanfile.snapshot`), enabling reproducible builds. Use `WithProjectDependencies``1` to run `carton install` at startup.
withCarton(): PerlAppResource
PerlAppResource

Defined on

This method is defined on the following type: