# DeploymentTargetAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [DeploymentTargetAnnotation](/reference/api/csharp/aspire.hosting/deploymenttargetannotation.md)
- Kind: `Properties`
- Members: `3`

Represents an annotation for a deployment target.

## ComputeEnvironment

- Name: `ComputeEnvironment`
- Modifiers: `nullable` `get; set`
- Returns: [IComputeEnvironmentResource?](/reference/api/csharp/aspire.hosting/icomputeenvironmentresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/DeploymentTargetAnnotation.cs)

Gets or sets the compute environment resource associated with the deployment target.

```csharp
public IComputeEnvironmentResource? ComputeEnvironment { get; set; }
```

## ContainerRegistry

- Name: `ContainerRegistry`
- Modifiers: `nullable` `get; set`
- Returns: [IContainerRegistry?](/reference/api/csharp/aspire.hosting/icontainerregistry.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/DeploymentTargetAnnotation.cs)

Gets or sets the container registry information associated with the deployment target, if the deployment target is an image-based environment.

```csharp
public IContainerRegistry? ContainerRegistry { get; set; }
```

## DeploymentTarget

- Name: `DeploymentTarget`
- Modifiers: `get; set`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/DeploymentTargetAnnotation.cs)

The deployment target.

```csharp
public IResource DeploymentTarget { get; set; }
```
