【问题标题】:Within the Microsoft Enterprise Framework, where did the FormatterData.GetRegistrations method go?在 Microsoft Enterprise Framework 中,FormatterData.GetRegistrations 方法去了哪里?
【发布时间】:2017-10-19 14:19:52
【问题描述】:

我有一项不幸的任务是升级使用 Microsoft.Practices.EnterpriseLibrary.Logging 库的已有十年历史的 C# 代码。我几乎可以编译它,只剩下一个错误:

他们正在扩展Microsoft.Practices.EnterpriseLibrary.Logging.Configuration 提供的FormatterData 抽象类。 MSDN includes the (minimal) docuemntation for this class。这包括所谓的方法GetDetails。代码覆盖此方法。但是,我的库副本没有这种方法。我已经下载了该库的最新副本(版本标签:“6.0.0.0”)。我没有原作者使用的 dll 的副本。

我只能假设该方法已被删除,并且我可能需要下载该库的一些历史副本。但是,MSDN 文章(据我所知)并未指出这些方法是在哪里添加或删除的。我需要使用哪个版本的库,在哪里可以找到它?

【问题讨论】:

    标签: .net enterprise-library msdn enterprise-library-6


    【解决方案1】:

    通过在 NuGet 中回滚 EnterpriseLibrary.Common 和 EnterpriseLibrary.Logging 的版本,我发现 5.0.505 版本是具有所需方法的最后一个版本。

    【讨论】:

      猜你喜欢
      • 2012-08-18
      • 2014-06-19
      • 2016-06-01
      • 1970-01-01
      • 2012-03-30
      • 1970-01-01
      • 2014-02-02
      • 1970-01-01
      • 2015-11-17
      相关资源
      最近更新 更多