Skip to content

Fix AddGeneratedFile target's Outputs file path#64

Merged
XuuXiaolan merged 1 commit intoTeamXiaolan:mainfrom
ratijas:work/ratijas/generated-file-outputs
Feb 5, 2026
Merged

Fix AddGeneratedFile target's Outputs file path#64
XuuXiaolan merged 1 commit intoTeamXiaolan:mainfrom
ratijas:work/ratijas/generated-file-outputs

Conversation

@ratijas
Copy link
Contributor

@ratijas ratijas commented Feb 3, 2026

Setting correct Output should reduce extra work on recompilation.

There is a duplication of MyPluginInfo.cs file path, and it doesn't seem to be possible to set it in a PropertyGroup outside of Target.

Also add brief comments on why there are seemingly two similar items about writing to file.

Setting correct Output should reduce extra work on recompilation.

There is a duplication of MyPluginInfo.cs file path, and it doesn't seem
to be possible to set it in a PropertyGroup outside of Target.

Also add brief comments on why there are seemingly two similar items
about writing to file.
@ratijas
Copy link
Contributor Author

ratijas commented Feb 5, 2026

For the context, documentation on topic:

https://learn.microsoft.com/en-us/visualstudio/msbuild/target-element-msbuild?view=visualstudio

Outputs - Optional attribute.

The files that form outputs into this target. Multiple files are separated by semicolons. The timestamps of the files will be compared with the timestamps of files in Inputs to determine whether the Target is up to date. For more information, see Incremental builds, How to: Build incrementally, and Transforms.

@XuuXiaolan XuuXiaolan merged commit 3e2b5b0 into TeamXiaolan:main Feb 5, 2026
1 check passed
@ratijas ratijas deleted the work/ratijas/generated-file-outputs branch February 5, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants