在使用中警告提示信息为:
warning MSB8012: TargetPath(D:\work\code\xxxx\Debug\xxxx.exe) does not match the Linker's OutputFile property value (c:\ccc\xxxx.exe). 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.OutputFile)。
其实就是和warning中提示的一样,在"项目->属性->配置属性->常规"选项卡下的“目标文件名”选项,和“项目->属性->配置属性->链接器->常规”选项卡下的“输出文件”选项,不一致,所以造成了输出文件命名上的矛盾,从而产生该warning。
这个问题通常是由于项目的设置引起的
修改 项目属性->常规->输出目录 与 链接器->常规->输出文件 保持一致即可。