# RunConfiguration

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.5.3`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/RunConfiguration.cs)

Holds settings applicable to the AppHost run mode (when [DistributedApplicationExecutionContext.Operation](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontext/properties.md#operation) is [DistributedApplicationOperation.Run](/reference/api/csharp/aspire.hosting/distributedapplicationoperation/fields.md)).

## Definition

```csharp
namespace Aspire.Hosting;

public sealed class RunConfiguration
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Remarks

Integrations use it to vary how their resources are launched without changing the core hosting behavior. In [DistributedApplicationOperation.Publish](/reference/api/csharp/aspire.hosting/distributedapplicationoperation/fields.md) mode every property holds its default value.

## Constructors

- [RunConfiguration](/reference/api/csharp/aspire.hosting/runconfiguration/constructors.md#constructor)

## Properties

- [WatchEnabled](/reference/api/csharp/aspire.hosting/runconfiguration/properties.md#watchenabled) : `bool` `get; init` -- Indicates that resources should start in watch mode if able.
