Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

IsDevelopment

Method
📦 Aspire.Hosting v17.0.0
func (HostEnvironment) IsDevelopment() (bool, error)

Signature

methodIsDevelopment
Checks if the environment is Development.
IsDevelopment() (bool, error)
(bool, error)

True if running in Development environment.

Returns (bool, error).

Applies to

This method applies to the following types: