# 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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DeploymentTargetAnnotation.cs)

The deployment target.

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