Skip to content
Docs Try Aspire
Docs Try

addScript

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

Signature

method addScript builder
Adds a PowerShell script resource to the distributed application.
addScript(
name: string,
script: string): PowerShellScriptResource
name string
script string
PowerShellScriptResource

Applies to

This method applies to the following types: