Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddScript

Method
📦 CommunityToolkit.Aspire.Hosting.PowerShell v13.6.1
func (PowerShellRunspacePoolResource) 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

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

Applies to

This method applies to the following types: