错误:文件' Microsoft.Management.Infrastructure.Native.dll'定位' x64'与项目的目标平台&x; x86'不兼容

时间:2017-12-22 21:30:23

标签: c# .net wpf visual-studio-2017 setup-project

编辑:我尝试了this个问题,但答案中没有给出任何方法。我无法创建两个不同的MSI,因为我得到了这个问题的标题错误,我尝试使用Advanced Installer,只为我的32位虚拟测试机器告诉我应用程序无法运行。

有人告诉我,我应该让我的应用程序兼容x86和x64架构,但我无法在Visual Studio安装项目中将目标设置为x86,因为我在构建时遇到此错误:

ERROR: File 'Microsoft.Management.Infrastructure.Native.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'

以下是安装项目中列出的依赖项:

dependencies

为了使其与x86兼容,我需要做什么?有人可以帮忙吗?

0 个答案:

没有答案