> ## Documentation Index
> Fetch the complete documentation index at: https://buildcharts.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Sample repositories for common BuildCharts targets and plugins.

The source repository includes small samples that mirror the supported target shapes.

## Sample projects

| Sample                                                                                                       | What it shows                                                     |
| ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| [`dotnet-docker`](https://github.com/eddietisma/buildcharts/tree/main/samples/dotnet-docker)                 | Build a .NET app and export a Docker image                        |
| [`dotnet-test`](https://github.com/eddietisma/buildcharts/tree/main/samples/dotnet-test)                     | Run tests and export `trx` files for test results                 |
| [`dotnet-nuget`](https://github.com/eddietisma/buildcharts/tree/main/samples/dotnet-nuget)                   | Pack a library and export `.nupkg` files                          |
| [`dotnet-testcontainers`](https://github.com/eddietisma/buildcharts/tree/main/samples/dotnet-testcontainers) | Use `TestcontainersDinD@v1` for container-based integration tests |

## Common run pattern

Each sample follows the same flow:

```bash theme={"theme":{"light":"plastic","dark":"plastic"}}
dotnet tool restore
buildcharts generate
docker buildx bake --file .buildcharts/docker-bake.hcl --no-cache
```

Use the samples as a starting point when you need a known-good layout for a target type or plugin.
