Edit

MSB4067 diagnostic code

This article describes the MSB4067 error code.

Message text

MSB4067: The element 'value' beneath element 'value' is unrecognized. MSB4067: The element 'value' beneath element 'value' is unrecognized. If you intended this to be a property, enclose it within a <PropertyGroup> element.

Description

This error occurs when a project file or an imported file contains an invalid element.

Resolution

Check the syntax of the element and refer to the MSBuild documentation for the parent element to determine if it's a valid child element. For more information, see MSBuild project file schema reference.

Applies to

All versions of MSBuild