Edit

Share via


MSB5029 diagnostic code

This article describes the MSB5029 error code.

Message text

MSB5029: The value 'value' of the 'value' attribute in element 'value' in file 'value' is a wildcard that results in enumerating all files on the drive, which was likely not intended. Check that referenced properties are always defined and that the project and current working directory are not at the drive root.

Description

This error occurs when a project element that has a drive enumerating wildcard value for one of its attributes. For example, <Compile Include="$(NotAlwaysDefined)\**\*.cs". If the property is undefined, the value of Include would result in enumerating all files on the drive. To avoid this unintended performance issue, MSBuild gives this error.

Resolution

You could define a default value for the property, or change the wildcard expression to more narrowly scope the search for the files you intend.

Applies to

MSBuild 17.0 and later