Edit

Share via


MSB8012 diagnostic code

This article describes the MSB8012 error code.

Message text

MSB8012: TargetPath (*target-path*) does not match the Linker/Library OutputFile property value (*output-file-path*). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(link/lib.OutputFile).

Description

This error occurs when a specified build property doesn't exist. A target path, filename, or file extension passed to the linker or library tool doesn't match the expected value.

Resolution

Ensure the specified properties match in your project's compiler and linker properties. For more information, see General property page (project) and Linker property pages.

Applies to

All versions of MSBuild