MSBuild Error MSB3022

Both "'<attribute>'" and "'<attribute>'" were specified as input parameters in the project file. Please choose one or the other.

For the Copy task, you must specify either DestinationFiles or DestinationDirectory,but not both task attributes.

To correct this error

  • Specify either DestinationFiles or DestinationDirectory for the Copy task in the project file.

See Also

Concepts

MSBuild Tasks

Reference

Copy Task