最近第一次用WPF开发一个windows桌面应用,应用开发完成,打包的时候出现以下问题。
1>------ 已启动全部重新生成: 项目: ExcelFill, 配置: Release Any CPU ------
1>  ExcelFill -> D:\winworkspace\ExcelFill\ExcelFill\bin\Release\ExcelFill.exe
------ Starting pre-build validation for project 'ExcelFillSetup' ------ 
------ Starting pre-build validation for project 'ExcelFillSetup' ------ 
------ Starting pre-build validation for project 'ExcelFillSetup' ------ 
.
.
.
Building file 'D:\winworkspace\ExcelFill\ExcelFillSetup\Release\ExcelFillSetup.msi'...
Building file 'D:\winworkspace\ExcelFill\ExcelFillSetup\Release\ExcelFillSetup.msi'...
Building file 'D:\winworkspace\ExcelFill\ExcelFillSetup\Release\ExcelFillSetup.msi'...
ERROR: File 'IBM.Data.DB2.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
ERROR: File 'IBM.Data.DB2.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
ERROR: File 'IBM.Data.DB2.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'IBM.Data.DB2.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'IBM.Data.DB2.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'IBM.Data.DB2.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
Build process cancelled
========== 全部重新生成: 成功 1 个,失败 1 个,跳过 0 个 ==========然而我的要制作安装包的目标平台设置的是x64啊,弄了半天了,好痛苦,求解!