更新活动 SilverLight MEF 应用程序的过程是什么

发布于 2024-10-06 15:31:20 字数 194 浏览 0 评论 0原文

是否有推荐的方法来更新常用的 SilverLight MEF 应用程序。该更新可能涉及一些相关的 MEF 组件或更重要的内容。我想避免运行时尝试加载不兼容的组件(更新前加载的组件 A 更新,但更新后加载的组件 B)。

.Net、SilverLight 或 MEF 中是否内置了一种机制来支持版本,或者应该使用重定向到应用程序最新版本的启动页面进行并行部署?

Is there a recommended approach for updating actively used SilverLight MEF applications. The update might involve a few related MEF components or something more signfiicant. I want to avoid having the runtime attempt to load incompatible components (Component A updated loaded before update, but component B loaded after update).

Is there a mechanism built into .Net, SilverLight or MEF to support versions or should have parallel deployments with a launch page that redirects to the latest version of the application ?

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

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

发布评论

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

评论(1

萌辣 2024-10-13 15:31:20

您的所有组件是否都在一个 XAP 中,或者您是否使用 DeploymentCatalog 下载多个 XAP,或者什么?如果它们都在一个 XAP 中,它将作为一个单元全部下载,您不必担心同时使用不同版本的组件。

如果您使用多个 XAP,那么您可能需要在主 XAP 中下载附加 XAP 的列表,或者您有一个应用程序调用的服务来确定哪些组件可用。在任何一种情况下,您都可以让 XAP 列表在您的应用程序版本之间有所不同,并指向组件的正确版本。

Are all your components in one XAP, or are you using the DeploymentCatalog to download multiple XAPs, or what? If they are all in one XAP it will all be downloaded as a unit and you shouldn't have to worry about different versions of components being used at once.

If you are using multiple XAPs, then you probably either have a list of additional XAPs to download in your primary XAP, or you have a service that the application calls to figure out what components are available. In either case you can have the list of XAPs be different between the versions of your app and point to the correct versions of your components.

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