gpt4 book ai didi

migration - Enterprise Library 5.0 是否向后兼容 Enterprise Library 4.1?

转载 作者:行者123 更新时间:2023-12-05 00:06:46 26 4
gpt4 key购买 nike

Enterprise Library 5.0 是否向后兼容 Enterprise Library 4.1?
我可以更改引用并让它工作吗?

最佳答案

明确的答案是:也许 .

这实际上取决于场景以及您如何使用这些块。在最好的情况下,您可以替换程序集引用,更改配置,它应该可以工作。

来自 Microsoft Enterprise Library 5.0 Change Log :

Major architectural revisions in Enterprise Library to use the dependency injection mechanism. [...] Enterprise Library no longer uses the static facades and static classes that were used in previous versions. However, these facades and classes are still included in Enterprise Library for backwards compatibility with existing application code, and you can continue to use the previous approach to creating Enterprise Library objects.



当然,事情似乎很少会这样,为了帮助解决任何问题并完成迁移方法,您一定要阅读:
  • Microsoft Enterprise Library 5.0Change Log: Breaking Changes
  • Microsoft Enterprise Library 5.0Migration Guide .
  • 关于migration - Enterprise Library 5.0 是否向后兼容 Enterprise Library 4.1?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2886261/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com