DependentBundles 元素参考
DependentBundles 元素用于指定哪些插件包必须可用,才能加载另一个插件包。 有时,一个插件包可能依赖于另一个插件包的文件才能正确运行。通过使用 DependentBundles 元素,可以指示 AutoCAD 仅在安装和加载某个具有特定升级代码或版本的包时才加载一个插件包。 DependentBundles 元素是可选的,并可以包含一个或多个 DependentBundle 元素。DependentBundle 元素用于标识在可以加载您的插件包之前必须先安装并加载的插件包。
DependentBundle 元素可以包含或封装 Component 元素。通过添加 Component 元素,可以定义对插件包内特定组件条目的依赖。Component 元素的 Name 属性必须与此插件包所依赖的 ComponentEntry 的 AppName 属性相匹配。 以下示例定义了对插件包(具有与“GUID-Value”匹配的 UpgradeCode)的两个组件的依赖: <DependentBundles> <DependentBundle UpgradeCode="GUID-Value" VersionMin="1" VersionMax="2"> <Component AppName="App1" /> <Component AppName="App2" /> </DependentBundle> </DependentBundles> 相关概念 |
👇👇👇点击下方图片关闭广告 不再弹出👇👇👇 [关闭30秒] |
||
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-4-1 19:22
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.