MSB4094
The full error text is similar to the following example:
MSB4094: 'value' is an invalid value for the 'name' parameter of the 'task' task. Multiple items cannot be passed into a parameter of type 'type'.
This error occurs when a project tries to pass multiple items into a task parameter of type ITaskItem
, which is singular. This error is probably an issue in the MSBuild script, either the project file, or an imported file.
If the task named is a custom task, check that the task is correctly configured to accept singular or multiple items, and is well-documented. To accept multiple items, the property's type should be ITaskItem[]
.