我在 WiX 库项目中引用 WiX 扩展 - 如何避免在使用此 wixlib 的其他项目中引用此扩展?

发布于 2024-08-29 22:07:52 字数 177 浏览 7 评论 0原文

我正在 WiX 库项目中引用 WiX 扩展。这个 WiX 库项目本身被我的主 WiX MSI 项目引用。为什么主项目还必须引用 WiX 扩展,即使它并不直接需要它?

我想让我的 Wixlib 尽可能独立,以便使用它们的其他项目不需要了解它们的内部工作原理。

我正在使用 WiX 的最新稳定版本(3.0.x)。

I'm referencing a WiX extension in a WiX library project. This WiX library project is itself referenced by my main WiX MSI project. Why does the main project have to also reference the WiX extension, even though it doesn't directly need it?

I'd like to keep my wixlib's as self-contained as possible, so that other projects that use them don't need to know about their inner workings.

I'm using latest stable release of WiX (3.0.x).

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

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

发布评论

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

评论(1

去了角落 2024-09-05 22:07:52

您需要该扩展,因为 lit.exe 不会将 WiX 扩展中的内容提取到您的库中。这通常是在“.lib”世界中执行操作的推荐方法,因为如果内容在“.libs”中重复,则很容易最终得到重复的符号。 WiX“.wixlibs”遵循相同的模式。

You need the extension because lit.exe doesn't pull the stuff in the WiX extension into your library. This is generally the recommended way to do things in the ".lib" world because it is very easy to end up with duplicate symbols if content is duplicated across ".libs". WiX ".wixlibs" follow the same pattern.

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