# DistributedApplicationModelExtensions

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DistributedApplicationModelExtensions.cs)

Provides extension methods on the [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md) class.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public static class DistributedApplicationModelExtensions
{
    // ...
}
```

## Methods

- [GetBuildAndPushResources(DistributedApplicationModel)](/reference/api/csharp/aspire.hosting/distributedapplicationmodelextensions/methods.md#getbuildandpushresources-distributedapplicationmodel) : [IEnumerable<IResource>](/reference/api/csharp/aspire.hosting/iresource.md) `extension` `ats ignored` -- Returns the build and push resources from the [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md). Build and push resources are those that require building and pushing container images to a registry, and are not marked to be ignored by the manifest publishing callback annotation.
- [GetBuildResources(DistributedApplicationModel)](/reference/api/csharp/aspire.hosting/distributedapplicationmodelextensions/methods.md#getbuildresources-distributedapplicationmodel) : [IEnumerable<IResource>](/reference/api/csharp/aspire.hosting/iresource.md) `extension` `ats ignored` -- Returns the build resources from the [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md). Build resources are those that are either build-only containers or project resources, and are not marked to be ignored by the manifest publishing callback annotation.
- [GetComputeResources(DistributedApplicationModel)](/reference/api/csharp/aspire.hosting/distributedapplicationmodelextensions/methods.md#getcomputeresources-distributedapplicationmodel) : [IEnumerable<IResource>](/reference/api/csharp/aspire.hosting/iresource.md) `extension` `ats ignored` -- Returns the compute resources from the [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md). Compute resources are those that are either containers or project resources, and are not marked to be ignored by the manifest publishing callback annotation.
