# DeploymentTargetAnnotation

- 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/DeploymentTargetAnnotation.cs)
- Implements: [IResourceAnnotation](/reference/api/csharp/aspire.hosting/iresourceannotation.md)

Represents an annotation for a deployment target.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class DeploymentTargetAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [DeploymentTargetAnnotation(IResource)](/reference/api/csharp/aspire.hosting/deploymenttargetannotation/constructors.md#constructor-iresource) -- Represents an annotation for a deployment target.

## Properties

- [ComputeEnvironment](/reference/api/csharp/aspire.hosting/deploymenttargetannotation/properties.md#computeenvironment) : [IComputeEnvironmentResource?](/reference/api/csharp/aspire.hosting/icomputeenvironmentresource.md) `get; set` -- Gets or sets the compute environment resource associated with the deployment target.
- [ContainerRegistry](/reference/api/csharp/aspire.hosting/deploymenttargetannotation/properties.md#containerregistry) : [IContainerRegistry?](/reference/api/csharp/aspire.hosting/icontainerregistry.md) `get; set` -- Gets or sets the container registry information associated with the deployment target, if the deployment target is an image-based environment.
- [DeploymentTarget](/reference/api/csharp/aspire.hosting/deploymenttargetannotation/properties.md#deploymenttarget) : [IResource](/reference/api/csharp/aspire.hosting/iresource.md) `get; set` -- The deployment target.
