PerlAppResource.withPackage

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
interface PerlAppResource {
// ... omitted for brevity
withPackage(
packageName: string,
force?: boolean,
skipTest?: boolean): PerlAppResource;
}

Signature

methodwithPackagebuilder
Adds a Perl package (module) to be installed before the application starts. Uses the configured package manager: cpan by default, or cpanm if `WithCpanMinus``1` was called.
withPackage(
packageName: string,
force?: boolean,
skipTest?: boolean): PerlAppResource
packageNamestringThe name of the Perl module to install (e.g., "Mojolicious", "DBI").
forcebooleanoptional= FalseIf `true`, force installation even if the module is already installed or tests fail.
skipTestbooleanoptional= FalseIf `true`, skip running tests during installation.
PerlAppResource

Defined on

This method is defined on the following type: