You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
Any browse object rule that defines editable
CopyToOutputDirectory
metadata should also haveTargetPath
and possiblyLink
.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:
From https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items:
The text was updated successfully, but these errors were encountered: