targeting ‘x64’is not compatible with the project's target platform 'x86'

背景:在VS打包时,进行到“生成”一项时,在下面的输出选项中,输出如下语句:

 问题分析:

编译文件为x64,打包生成后的目标文件为x86。x64不兼容打包生成的x86。

解决方式:

解决方案资源管理器中,选中打包的那个文件,按F4,在弹出的属性框中,将TargetPlatform 更改为x64

原文地址:https://www.cnblogs.com/algs/p/13100450.html