Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddPerlModule

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
func (DistributedApplicationBuilder) AddPerlModule(
resourceName string,
appDirectory string,
moduleName string,
) PerlAppResource

Signature

methodAddPerlModulebuilder
Adds a Perl module to the application model. The module is executed using perl -MModule::Name -e "Module::Name->run()".
AddPerlModule(
resourceName string,
appDirectory string,
moduleName string,
) PerlAppResource
resourceNamestringThe name of the resource.
appDirectorystringThe path to the working directory for the application.
moduleNamestringThe fully qualified Perl module name (e.g., "MyApp::Main").
PerlAppResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder