Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TargetPath and Link metadata on CopyToOutputDirectory items in Properties window #9419

Open
drewnoakes opened this issue Mar 13, 2024 · 0 comments
Labels
Milestone

Comments

@drewnoakes
Copy link
Member

Any browse object rule that defines editable CopyToOutputDirectory metadata should also have TargetPath and possibly Link.

This will allow users to modify these values from the properties tool window in VS.

From https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-item-metadata:

The Visual Studio project system uses Link metadata (if present) to alter what shows up in the project tree; you can put a file in a different logical folder structure in Solution Explorer.

In addition, the AssignTargetPath task looks at Link to determine where in the output directory to copy a file to, if it’s one of the items that gets copied.

From https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items:

TargetPath is the output path (relative to the configuration- and/or platform-specific output directory) of an item, including the filename. This respects the Link metadata, if provided. If TargetPath isn't provided, it's computed during the build process. See AssignTargetPath.

@melytc melytc added the Triage-Approved Reviewed and prioritized label Mar 28, 2024
@melytc melytc added this to the Backlog milestone Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants