Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithLocalLib

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
func (PerlAppResource) WithLocalLib(options ...*WithLocalLibOptions) PerlAppResource

Signature

methodWithLocalLibbuilder
Configures the Perl application to use a local::lib directory for module isolation. Sets PERL5LIB, PERL_LOCAL_LIB_ROOT, PERL_MM_OPT, and PERL_MB_OPT environment variables so that modules are resolved from and installed into the local directory.
WithLocalLib(options ...*WithLocalLibOptions) PerlAppResource
options...*WithLocalLibOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithLocalLibOptions argument.

Path*stringThe path to the local::lib directory. Relative paths are resolved against the resource's working directory (appDirectory), not the AppHost project. Rooted paths (e.g., /opt/perl-libs or C:\perl-libs) are used as-is. Defaults to "local" (the Carton convention).
PerlAppResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types: