Skip to content

[Feature Request]: Add 'IfDifferent' mode for CopyToOutputDirectory metadata #8743

@JanKrivanek

Description

@JanKrivanek

Summary

Currently CopyToOutputDirectory can only be Never, Always and PreserveNewest. (https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items)
This can cause problems when the content file is for some reason changed to the older copy, but still expected to be copied.

Sample scenarios when this might be needed:

Proposed Feature

Either add IfDifferent mode, or make the Always mode behave that way (as e.g. discussed here: #7654 (comment))

Metadata

Metadata

Assignees

Labels

Feature Requestbackloggathering-feedbackThe issue requires feedback in order to be planned, please comment if the feature is useful for youtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions