vs2019 - 打包 - WARNING: File ‘’ targeting ‘x64’ is not compatible with the project’s
概述
尝试用VS2019自带的setup插件打包,有警告,如下
------ Pre-build validation for project 'caseSetupPrj' completed ------
------ 已启动全部重新生成: 项目: caseSetupPrj, 配置: Debug ------
Building file 'D:\my_dev\my_local_git_prj\product\xx\src\installer\caseSetupPrj\Debug\caseSetupPrj.msi'...
WARNING: File 'msys-ssl-1.1.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
要打包的程序都是x64的。
看提示,打包工程是x86的。
试了一下,没看到怎么将打包工程改为x64.
看了前排同学的笔记,没找到他们说的工程属性页在哪里啊…
最后才明白,将VS2019右边的属性栏固定住,再点击打包工程的节点就看到了…
笔记
将打包工程的属性(平台)改为x64
再打包,就没有这个警告了。0错误,0警告。
已启动重新生成…
------ Starting pre-build validation for project 'caseSetupPrj' ------
------ Pre-build validation for project 'caseSetupPrj' completed ------
------ 已启动全部重新生成: 项目: caseSetupPrj, 配置: Debug ------
Building file 'D:\my_dev\my_local_git_prj\product\xx\src\installer\caseSetupPrj\Debug\caseSetupPrj.msi'...
Packaging file 'xx.dll'...
// ...
Packaging file 'xx.dll'...
========== 全部重新生成: 成功 1 个,失败 0 个,跳过 0 个 ==========