warning MSB8012: TargetPath與 Linker 的 OutputFile 屬性值不匹配。這可能導(dǎo)致項(xiàng)目生成不正確。
若要更正此問(wèn)題,請(qǐng)確保 $(OutDir)、$(TargetName) 和 $(TargetExt) 屬性值與 %(Link.OutputFile) 中指定的值匹配。
1) set Configuration Properties | Linker | General | Output file to$(OutDir)$(TargetName)$(TargetExt)
2) set Configuration Properties | General | Output Directory to "desired directory path"
3) set Configuration Properties | General | Target Name to "desired name for output file"
4) set Configuration Properties | General | Target Extension to "desired output file extention (include dot)"
一般用第一種設(shè)置就可以