# ExecutableResourceExtensions Methods

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ExecutableResourceExtensions](/reference/api/csharp/aspire.hosting/executableresourceextensions.md)
- Kind: `Methods`
- Members: `1`

Provides extension methods for working with [ExecutableResource](/reference/api/csharp/aspire.hosting/executableresource.md) objects.

## GetExecutableResources(DistributedApplicationModel)

- Name: `GetExecutableResources(DistributedApplicationModel)`
- Modifiers: `extension`
- Returns: [IEnumerable<ExecutableResource>](/reference/api/csharp/aspire.hosting/executableresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ExecutableResourceExtensions.cs#L21-L23)

Returns an enumerable collection of executable resources from the specified distributed application model.

```csharp
public static class ExecutableResourceExtensions
{
    public static IEnumerable<ExecutableResource> GetExecutableResources(
        this DistributedApplicationModel model)
    {
        // ...
    }
}
```

## Parameters

- `model` ([DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md))
  The distributed application model to retrieve executable resources from.

## Returns

[IEnumerable<ExecutableResource>](/reference/api/csharp/aspire.hosting/executableresource.md) -- An enumerable collection of executable resources.

## ATS metadata

### Ignored by ATS

- Reason: Application model inspection helper -- not part of the ATS surface.
