# ExcludeFilePatterns

Property in [Project](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.compiler/yarn.compiler.project)

## 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](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.sourcefilepatterns) , and is also matched by a pattern in [ExcludeFilePatterns](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.excludefilepatterns) , then it is not included in the value returned by [SourceFiles](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.sourcefiles) .
