Skip to content
Docs Try Aspire

RegistryTargetAnnotation

Class sealed net10.0
📦 Aspire.Hosting v13.1.2
Annotation that indicates a resource should use a specific container registry as its default target.
namespace Aspire.Hosting.ApplicationModel;
public sealed class RegistryTargetAnnotation
: Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
// ...
}
This annotation is automatically added to resources when a container registry is added to the application model. It provides a default registry for resources that don't have an explicit ContainerRegistryReferenceAnnotation.