# BunInstallerResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Bun](/reference/api/csharp/communitytoolkit.aspire.hosting.bun.md)
- Type: [BunInstallerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.bun/buninstallerresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a Bun package installer.

<a id="constructor"></a>
<a id="constructor-string-string"></a>

## BunInstallerResource(string, string)

- Name: `Constructor(string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/0a6068734d939cdf93e8a6a0cab67cf1e5c76953/src/CommunityToolkit.Aspire.Hosting.Bun/BunInstallerResource.cs#L9)

A resource that represents a Bun package installer.

```csharp
public class BunInstallerResource
{
    public BunInstallerResource(
        string name,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory to use for the command.
