Edit

Share via


MSB4027 diagnostic code

This article describes the MSB4027 error code.

Message text

MSB4027: The 'value' task generated invalid items from the 'value' output parameter.

Description

This error occurs when there's a problem with the specified output item returned from a MSBuild task. MSBuild tasks may be system tasks, or custom tasks. System tasks shouldn't produce this error, but a custom task could produce this error if there's a logic problem in the task implementation, such as a type conversion that fails.

Remarks

If the task given in the error message is one your own custom task, you can debug the task to see why it's returning invalid items for the specified output parameter.

Applies to

All versions of MSBuild