Skip to content
Docs Try Aspire
Docs Try

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

Applies to

This method applies to the following types: