Skip to content

Commit c07f28f

Browse files
authored
Include AdditionalFiles doc (#76526)
1 parent fbdd94c commit c07f28f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/features/incremental-generators.cookbook.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ public class FileTransformGenerator : IIncrementalGenerator
208208
}
209209
```
210210

211+
Items need to be included in your csproj files by using the `AdditionalFiles` ItemGroup:
212+
213+
```xml
214+
<ItemGroup>
215+
<AdditionalFiles Include="file1.xml" />
216+
<AdditionalFiles Include="file2.xml" />
217+
<ItemGroup>
218+
```
219+
211220
### Augment user code
212221

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

0 commit comments

Comments
 (0)