# RequiredCommandAnnotation Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [RequiredCommandAnnotation](/reference/api/csharp/aspire.hosting/requiredcommandannotation.md)
- Kind: `Constructors`
- Members: `1`

An annotation which declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.

## RequiredCommandAnnotation(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/RequiredCommandAnnotation.cs#L15-L20)

An annotation which declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.

```csharp
public class RequiredCommandAnnotation
{
    public RequiredCommandAnnotation(
        string command)
    {
        // ...
    }
}
```

## Parameters

- `command` (`string`)
  The command string (file name or path) that should be validated.
