Edit

Share via


MSB4020 diagnostic code

This article describes the MSB4020 error code.

Message text

MSB4020: The value 'value' of the 'value' attribute in element 'value' is invalid.

Description

This error occurs when a project element has an incorrect value for one of its attributes. For example, an Import element with an empty string for the Project.

<Import Project="">

Resolution

Check the attribute and value referenced in the text of the error message. If the values provided are determined by properties, ensure that the properties are defined and have the correct values.

Applies to

All versions of MSBuild