6

我正在尝试在 web .csproj 上使用热量,然后在输出上使用蜡烛。到目前为止,我已经完成了:

heat project "StatusReport Web.csproj" -pog:Binaries pog:Content -ag -out StatusReport.wxs

接着:

candle StatusReport.wxs

但是,在后者上,我得到:

Error CNDL0150: Undefined preprocessor variable '$(var.StatusReport Web.TargetDir)'.

我究竟做错了什么?

另外,有没有办法在 Visual Studio Wix 项目中使用热量输出?

4

2 回答 2

7

生成的 wxs 文件heat.exe包含预处理器变量$(var.StatusReport Web.TargetDir)。您必须将此变量的值传递给candle.exe。它应该设置为二进制文件的 Visual Studio 输出文件夹。

您可以将此变量的值传递给candle.exe这样的:

candle.exe -dStatusReport.Web.TargetDir=c:\myproject\bin StatusReport.wxs

或者,您可以只编辑StatusReport.wxs变量并将其替换为它应该具有的值。

于 2009-11-27T00:19:00.363 回答
0

第二个问题的答案很简单,就是Add Existing Item,并指向heat的输出文件,所以我猜第一个问题无所谓。

如果 heat 可以为您处理项目依赖关系,那就太好了。

于 2009-11-24T22:19:49.903 回答