将发布者策略嵌入到程序集中

发布于 2024-07-13 22:55:19 字数 206 浏览 4 评论 0原文

我正在开发一个共享程序集,版本 2.0.0.0。 为了将来的兼容性,我想将所有 2.0.xx 版本绑定到安装的最新版本。 为此,我需要一个发布者策略文件。 有没有办法将发布者策略直接嵌入“代码”程序集中,而不必安装两个不同的程序集?

即我的程序集将始终位于 GAC 中,因为不允许它与其所包装的应用程序分开运行。

谢谢。 QbProg

I'm developing a shared assembly, version 2.0.0.0.
For future compatibility, I'd like to bind all the 2.0.x.x versions to the latest version installed. To do so I need a publisher policy file.
Is there a way to embed the publisher policy directly in the "code" assembly instead of having to install two different assemblies?

I.e. my assembly will be ALWAYS in the GAC, since it is not allowed to run separated from the application it wraps.

Thank you.
QbProg

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

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

发布评论

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

评论(1

柠檬心 2024-07-20 22:55:19

不,没有这样的解决方案。 发布者策略程序集是独立的。 (这让用户/管理员决定是否要安装它们。)踢球器是 文档指出程序集名称必须遵循 policy.majorNumber.minorNumber.mainAssemblyName.dll 格式。

No, there is no such solution. Publisher policy assemblies are separate. (This lets the user/admin decide whether they want to install them or not.) The kicker is the part of the documentation that says that the assembly name must follow the format policy.majorNumber.minorNumber.mainAssemblyName.dll.

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