Wix - 使用蜡烛的热量输出时如何处理项目引用?

发布于 2024-08-12 04:25:52 字数 429 浏览 1 评论 0原文

我正在尝试在 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 项目中使用热量输出?

I'm trying to use heat on a web .csproj, and then use candle on the output. So far, I've done:

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

And then:

candle StatusReport.wxs

However, upon the latter, I get:

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

What am I doing wrong?

Also, is there a way to use the output of heat in a Visual Studio Wix project?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

当爱已成负担 2024-08-19 04:25:52

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

您可以将此变量的值传递给 candle.exe,如下所示:

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

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

The wxs file produced by heat.exe contains the preprocessor variable $(var.StatusReport Web.TargetDir). You must pass the value of this variable to candle.exe. It should be set to the visual studio output folder of your binaries.

You can pass the value of this variable to candle.exe like this:

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

Alternatively, you can just edit StatusReport.wxs and replace the variable by the value that it's supposed to have.

说好的呢 2024-08-19 04:25:52

第二个问题的答案很简单,只需添加现有项目,并指向 heat 的输出文件,所以我想第一个问题并不重要。

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

The answer to the second question is easy, just Add Existing Item, and point to heat's output file, so I guess the first question doesn't matter.

It'd be neat if heat could handle the project dependencies for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文