# ExecutableResource

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ExecutableResource.cs)
- Inherits: [Resource](/reference/api/csharp/aspire.hosting/resource.md)
- Implements: [IComputeResource](/reference/api/csharp/aspire.hosting/icomputeresource.md), [IResource](/reference/api/csharp/aspire.hosting/iresource.md), [IResourceWithArgs](/reference/api/csharp/aspire.hosting/iresourcewithargs.md), [IResourceWithEndpoints](/reference/api/csharp/aspire.hosting/iresourcewithendpoints.md), [IResourceWithEnvironment](/reference/api/csharp/aspire.hosting/iresourcewithenvironment.md), [IResourceWithProbes](/reference/api/csharp/aspire.hosting/iresourcewithprobes.md), [IResourceWithWaitSupport](/reference/api/csharp/aspire.hosting/iresourcewithwaitsupport.md)

A resource that represents a specified executable process.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class ExecutableResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IComputeResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithArgs,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.ApplicationModel.IResourceWithEnvironment,
      Aspire.Hosting.ApplicationModel.IResourceWithProbes,
      Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport
{
    // ...
}
```

## Remarks

You can run any executable command using its full path. As a security feature, Aspire doesn't run executable unless the command is located in a path listed in the PATH environment variable. To run an executable file that's in the current directory, specify the full path or use the relative path `./` to represent the current directory.

## Constructors

- [ExecutableResource(string, string, string)](/reference/api/csharp/aspire.hosting/executableresource/constructors.md#constructor-string-string-string)

## Properties

- [Command](/reference/api/csharp/aspire.hosting/executableresource/properties.md#command) : `string` `get` -- Gets the command associated with this executable resource.
- [WorkingDirectory](/reference/api/csharp/aspire.hosting/executableresource/properties.md#workingdirectory) : `string` `get` -- Gets the working directory for the executable resource.
