# AspireExportProviderAttribute

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.6.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/Ats/AspireExportProviderAttribute.cs)
- Inherits: `Attribute`

Marks an assembly-level opt-in attribute whose source generator provides [AspireExportAttribute](/reference/api/csharp/aspire.hosting/aspireexportattribute.md) coverage.

## Definition

```csharp
namespace Aspire.Hosting;

public sealed class AspireExportProviderAttribute
    : System.Attribute
{
    // ...
}
```

## Remarks

Source generators can apply this attribute to their opt-in attribute type so the Aspire integration analyzer recognizes assemblies whose exports are produced during compilation. The opt-in attribute itself must target assemblies.

## Constructors

- [AspireExportProviderAttribute](/reference/api/csharp/aspire.hosting/aspireexportproviderattribute/constructors.md#constructor)
