# Compiler Warning ASPIRETERMINAL001

<Badge
  text="Version introduced: 13.5"
  variant="note"
  size="large"
  class:list={'mb-1'}
/>

> Terminal types and members are for evaluation purposes only and are subject to change or removal in future updates. Suppress this diagnostic to proceed.

This diagnostic warning is reported when using experimental terminal APIs in Aspire, including AppHost-owned terminals, terminal interactions, and terminal automation. These include `TerminalService`, `AspireTerminal`, `TerminalLaunchOptions`, `TerminalPlacement`, `TerminalOwner`, `AspireTerminalKey`, `PromptTerminalAsync`, `TerminalInteractionOptions`, and `TerminalContext`.

Starting with Aspire 17.0, <ApiReference name="Aspire.Hosting.TerminalResourceBuilderExtensions.WithTerminal" /> and `TerminalOptions` are no longer experimental and don't report this diagnostic.

## Example

The following code generates `ASPIRETERMINAL001`:

```csharp title="AppHost.cs"
var builder = DistributedApplication.CreateBuilder(args);

var options = new TerminalLaunchOptions
{
    Title = "Local shell",
    Executable = "/bin/sh"
};

builder.Build().Run();
```

## To correct this warning

Suppress the warning with one of the following methods:

- Set the severity of the rule in the _.editorconfig_ file.

  ```ini title=".editorconfig"
  [*.{cs,vb}]
  dotnet_diagnostic.ASPIRETERMINAL001.severity = none
  ```

  For more information about editor config files, see [Configuration files for code analysis rules](/diagnostics/overview/#suppress-in-the-editorconfig-file).

- Add the following `PropertyGroup` to your project file:

  ```xml title="C# project file"
  <PropertyGroup>
      <NoWarn>$(NoWarn);ASPIRETERMINAL001</NoWarn>
  </PropertyGroup>
  ```

- Suppress in code with the `#pragma warning disable ASPIRETERMINAL001` directive:

  ```csharp title="Suppressing the warning"
  #pragma warning disable ASPIRETERMINAL001
  builder.AddContainer("cache", "redis")
      .WithTerminal();
  #pragma warning restore ASPIRETERMINAL001
  ```

## See also

- [Attach a terminal to a resource](/app-host/with-terminal/) - Learn about `WithTerminal`
- [Create AppHost-owned terminals](/dashboard/ephemeral-terminals/)
- [Terminal interactions](/dashboard/terminal-interactions/#terminal-interactions)
- [Dashboard terminal experiences](/dashboard/terminals/)