> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.excludefilepatterns.md).

# ExcludeFilePatterns

Property in [Project](/api/csharp/yarn.compiler/yarn.compiler.project.md)

## Summary

Gets or sets the collection of file search patterns that should be excluded from this project.

```csharp
public IEnumerable<string> ExcludeFilePatterns { get; set; }
```

## Remarks

If a file is matched by a pattern in [SourceFilePatterns](/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.sourcefilepatterns.md) , and is also matched by a pattern in [ExcludeFilePatterns](/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.excludefilepatterns.md) , then it is not included in the value returned by [SourceFiles](/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.sourcefiles.md) .
