Skip to content

Commit

Permalink
Include AdditionalFiles doc (#76526)
Browse files Browse the repository at this point in the history
  • Loading branch information
333fred authored Dec 19, 2024
1 parent fbdd94c commit c07f28f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/features/incremental-generators.cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ public class FileTransformGenerator : IIncrementalGenerator
}
```

Items need to be included in your csproj files by using the `AdditionalFiles` ItemGroup:

```xml
<ItemGroup>
<AdditionalFiles Include="file1.xml" />
<AdditionalFiles Include="file2.xml" />
<ItemGroup>
```

### Augment user code

**User scenario:** As a generator author I want to be able to inspect and augment a user's code with new functionality.
Expand Down

0 comments on commit c07f28f

Please sign in to comment.