addPerlScript

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addPerlScript(
resourceName: string,
appDirectory: string,
scriptName: string): PerlAppResource;
}

Signature

methodaddPerlScriptbuilder
Adds a Perl script resource (worker, CLI tool, background service) to the application model.
addPerlScript(
resourceName: string,
appDirectory: string,
scriptName: string): PerlAppResource
resourceNamestringThe name of the resource.
appDirectorystringThe path to the directory containing the Perl script. Resolved relative to the AppHost project directory; becomes the resource's working directory and the anchor for all relative path resolution (script path, `WithLocalLib`, cpanfile discovery).
scriptNamestringThe path to the script relative to `appDirectory`. Do not include the `appDirectory` prefix — the script is resolved relative to `appDirectory` automatically.
PerlAppResource

Applies to

This method applies to the following types: