如何在命令行中使用 Heat.exe 生成的 WiX 片段中指定程序集属性

发布于 2024-09-26 12:18:27 字数 222 浏览 0 评论 0原文

我正在使用 Heat.exe 获取包含需要进入 GAC 的 DLL 的目录。该片段已正确创建,我可以构建我的 MSI。我遇到的问题是,创建 wxs 源文件后,我必须手动编辑文件,添加 File/@Assembly =".net" 属性。

从命令行使用 heat.exe 时,有没有办法让每个文件的 heat 包含 Assembly=".net"

使用 WiX 3.0。

I am using Heat.exe to harvest a directory containing my DLLs that need to go into the GAC. The fragment is correctly created and I can build my MSI. The problem I am having is that after the wxs source file is created I have to manually edit the file adding the File/@Assembly =".net" attribute.

Is there a way to have heat include Assembly=".net" for each File when using heat.exe from the command line?

Using WiX 3.0.

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

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

发布评论

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

评论(1

庆幸我还是我 2024-10-03 12:18:27

没有专门的属性,可能是因为您可以有自己的规则,哪些文件需要此属性,哪些文件不需要。

但是,您可以将 XSLT 转换应用于热量输出,并按照您需要的方式调整生成的 XML(WXS 文件)。查看 -t: 开关了解更多详细信息。

There's no ad hoc attribute for this, probably because you can have your own rules, which files need this attribute, and which do not.

However, you can apply XSLT transform to the heat output and adjust the resulting XML (WXS file) the way you need. Take a look at -t:<xsl> switch for more details.

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