# PipelineOutputDiffOptions Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [PipelineOutputDiffOptions](/reference/api/csharp/aspire.hosting/pipelineoutputdiffoptions.md)
- Kind: `Properties`
- Members: `2`

Controls selection and built-in fingerprinting for the default pipeline output differ.

<a id="mode"></a>

## Mode

- Name: `Mode`
- Modifiers: `get; set`
- Returns: [PipelineOutputDiffMode](/reference/api/csharp/aspire.hosting/pipelineoutputdiffmode.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/Pipelines/PipelineOutputDiffOptions.cs)

Gets or sets the membership and fingerprinting strategy. Defaults to [PipelineOutputDiffMode.Auto](/reference/api/csharp/aspire.hosting/pipelineoutputdiffmode/fields.md).

```csharp
public PipelineOutputDiffMode Mode { get; set; }
```

<a id="rules"></a>

## Rules

- Name: `Rules`
- Modifiers: `get`
- Returns: [IList<PipelineOutputDiffRule>](/reference/api/csharp/aspire.hosting/pipelineoutputdiffrule.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/Pipelines/PipelineOutputDiffOptions.cs#L35)

Gets the ordered include and exclude glob rules, relative to the global output directory.

```csharp
public IList<PipelineOutputDiffRule> Rules { get; }
```

## Remarks

An empty collection selects all files with `Include **/*`. A nonempty collection replaces that default: only included paths are selected, and the last matching rule wins. To exclude from a broad scope, first add `Include **/*`, then the exclusions. Git membership filtering applies after these rules when [PipelineOutputDiffOptions.Mode](/reference/api/csharp/aspire.hosting/pipelineoutputdiffoptions/properties.md#mode) selects Git; an include cannot restore an ignored, untracked file. When Git is not used, these rules also control selection of Git metadata. Rules affect comparison only, not generation. The policy is compiled from validated options when the default differ is resolved; membership is reevaluated at each capture.
