This documentation is archived and is not being maintained.

MSBuild Error MSB3022

Both "{0}" and "{1}" 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


Copy Task


MSBuild Tasks