Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

EnvironmentEditor.Set

Method
📦 Aspire.Hosting v17.0.0
type EnvironmentEditor interface {
// ... omitted for brevity
Set(
name string,
value any,
) error
}

Signature

methodSet
Sets an environment variable.
Set(
name string,
value any,
) error
namestringThe name of the environment variable.
valueanyThe value to assign to the environment variable.
error

Returns error.

Defined on

This method is defined on the following type: