Skip to content

Commit 1d1f1cd

Browse files
authored
Update docs/msbuild/customize-builds-for-generated-files.md
1 parent a73e1b3 commit 1d1f1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/msbuild/customize-builds-for-generated-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Files generated during execution don't exist during the evaluation phase, theref
4949

5050
Adding your generated file to `None` or `Content` is sufficient for the build process to see it. You also want to ensure it gets added at the right time. Ideally, your target runs before `BeforeBuild`. `AssignTargetPaths` is another possible target, as it is the final opportunity to modify `None` and `Content` items (among others) before they are transformed into new items. See [Common Item Types](common-msbuild-project-items.md).
5151

52-
If you put the above into a file and call it `buildcodegen.targets`, you can run `dotnet new console`, import the file, and then build it to test everything:
52+
Copy the above, paste it into a file, and call it `buildcodegen.targets`. Then, run `dotnet new console`, import the file, and build it to see how it works.
5353

5454
```xml
5555
<Project Sdk="Microsoft.NET.Sdk">

0 commit comments

Comments
 (0)