Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Compilation 使用“编写wix项目”;任何CPU“;而不是",;X86“;_Compilation_Wix - Fatal编程技术网

Compilation 使用“编写wix项目”;任何CPU“;而不是",;X86“;

Compilation 使用“编写wix项目”;任何CPU“;而不是",;X86“;,compilation,wix,Compilation,Wix,当我编译wix项目,并且wix通过MSbuild启动对所有现有项目的编译时,我可以使用“任意CPU”而不是“X86”或“64位”吗 如果没有,我如何使用“任何CPU”编译项目?如果您的问题是是否可以为任何CPU编译WIXPROJ,那么答案是否定的 “在构建‘任何CPU’平台时,不会构建WiX项目 因为Windows Installer软件包是特定于CPU的。“ WIXPROJ中的TargetPlatform设置定义了Windows Installer处理文件夹变量、注册表和GAC等的方式。例如,

当我编译wix项目,并且wix通过MSbuild启动对所有现有项目的编译时,我可以使用“任意CPU”而不是“X86”或“64位”吗


如果没有,我如何使用“任何CPU”编译项目?

如果您的问题是是否可以为
任何CPU编译WIXPROJ,那么答案是否定的

“在构建‘任何CPU’平台时,不会构建WiX项目 因为Windows Installer软件包是特定于CPU的。“

WIXPROJ中的
TargetPlatform
设置定义了Windows Installer处理文件夹变量、注册表和GAC等的方式。例如,如果安装项目的
TargetPlatform
为x64,则安装项目将使用
[ProgramFiles64文件夹]
变量;和用于x86的
[ProgramFilesFolder]

检查此答案,它将有助于:

步骤1:转到解决方案属性
步骤2:配置属性-->配置
步骤3:检查WIX项目的构建选项

+1这个答案与这个问题无关。这个问题也不是我想要的。但这个答案正是我想要的问题的正确答案D