# AtsDiagnostic

- Kind: `class`
- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Version: `13.4.0`
- Namespace: `Aspire.TypeSystem`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/AtsCapabilityInfo.cs)

Represents a diagnostic message from the ATS capability scanner.

## Definition

```csharp
namespace Aspire.TypeSystem;

public sealed class AtsDiagnostic
{
    // ...
}
```

## Constructors

- [AtsDiagnostic](/reference/api/csharp/aspire.typesystem/atsdiagnostic/constructors.md#constructor)

## Properties

- [Location](/reference/api/csharp/aspire.typesystem/atsdiagnostic/properties.md#location) : `string?` `get; init` -- Gets the source location (e.g., type name, method name).
- [Message](/reference/api/csharp/aspire.typesystem/atsdiagnostic/properties.md#message) : `string` `get; init` -- Gets the diagnostic message.
- [Severity](/reference/api/csharp/aspire.typesystem/atsdiagnostic/properties.md#severity) : [AtsDiagnosticSeverity](/reference/api/csharp/aspire.typesystem/atsdiagnosticseverity.md) `get; init` -- Gets the severity of the diagnostic.

## Methods

- [Error(string, string?)](/reference/api/csharp/aspire.typesystem/atsdiagnostic/methods.md#error-string-string) : [AtsDiagnostic](/reference/api/csharp/aspire.typesystem/atsdiagnostic.md) `static` -- Creates an error diagnostic.
- [Info(string, string?)](/reference/api/csharp/aspire.typesystem/atsdiagnostic/methods.md#info-string-string) : [AtsDiagnostic](/reference/api/csharp/aspire.typesystem/atsdiagnostic.md) `static` -- Creates an info diagnostic (verbose output shown with --debug).
- [Warning(string, string?)](/reference/api/csharp/aspire.typesystem/atsdiagnostic/methods.md#warning-string-string) : [AtsDiagnostic](/reference/api/csharp/aspire.typesystem/atsdiagnostic.md) `static` -- Creates a warning diagnostic.
