Skip to content
DocsTry Aspire
DocsTry

addScript

Method
📦 CommunityToolkit.Aspire.Hosting.PowerShell v13.4.0
interface PowerShellRunspacePoolResource {
// ... omitted for brevity
addScript(
name: string,
script: string): PowerShellScriptResource;
}

Signature

methodaddScriptbuilder
Adds a PowerShell script resource to the distributed application.
addScript(
name: string,
script: string): PowerShellScriptResource
namestring
scriptstring
PowerShellScriptResource

Applies to

This method applies to the following types: