Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCarton

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
func (PerlAppResource) WithCarton() PerlAppResource

Signature

methodWithCartonbuilder
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 to run carton install at startup.
WithCarton() PerlAppResource
PerlAppResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: