当我创建一个 WiX 项目并尝试将平台设置为“x64”时,我的构建输出会显示如下错误:
------ Build started: Project: MyProject, Configuration: Release x64 ------
C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(444,7): error : The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Release' Platform='x64'
Done building project "MyProject.wixproj" -- FAILED.
------ Build started: Project: MyProject, Configuration: Debug x64 ------
C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(444,7): error : The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Debug' Platform='x64'
Done building project "MyProject.wixproj" -- FAILED.
报错提示该项目未设置输出路径,但实际上已经设置了。对于调试配置,输出路径设置为bin\x64\Debug\
,而对于发布配置,则设置为bin\x64\Release\
。那这个错误是什么原因造成的呢?
此外,该错误并没有显示在错误窗口中。我知道归咎于编译器是一个新手错误,但我开始怀疑......这是构建工具的问题还是我忽略了某些愚蠢的东西?