Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithProjectDependencies

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
func (PerlAppResource) WithProjectDependencies(options ...*WithProjectDependenciesOptions) PerlAppResource

Signature

methodWithProjectDependenciesbuilder
Configures project-level dependency installation for the Perl application. Runs the appropriate install command based on the active package manager: - - If the active package manager is cpan (the default), it is automatically switched to cpanm since cpan does not support --installdeps.
WithProjectDependencies(options ...*WithProjectDependenciesOptions) PerlAppResource
options...*WithProjectDependenciesOptionsOptional settings, described under Options.

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

CartonDeployment*boolIf true and using Carton, adds --deployment for reproducible installs from cpanfile.snapshot. Ignored for other package managers.
PerlAppResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types: