Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithEnvironmentVariablesConfig

Method
📦 Aspire.Hosting v17.0.0
func (ExecutionConfigurationBuilder) WithEnvironmentVariablesConfig() ExecutionConfigurationBuilder

Signature

methodWithEnvironmentVariablesConfig
Adds an environment variables configuration gatherer to the builder.
WithEnvironmentVariablesConfig() ExecutionConfigurationBuilder
ExecutionConfigurationBuilder

The builder with the configuration gatherer added.

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

Applies to

This method applies to the following types: