【问题标题】:MEF for Portable Library Class targeting .NET4.5, SL and Windows Store apps面向 .NET4.5、SL 和 Windows 应用商店应用的便携式库类的 MEF
【发布时间】:2012-10-01 09:54:15
【问题描述】:

我正在使用可移植库类,我的目标是 .NET 4.5、Silverlight 5 和 Windows Store 应用程序。

根据 MSDN,可以在这三个平台中使用 MEF:http://msdn.microsoft.com/en-us/library/gg597391.aspx

但我无法在这些平台上使用 MEF。在 PCL 中使用 MEF 的正确方法是什么?

【问题讨论】:

    标签: c# visual-studio-2012 mef portable-class-library


    【解决方案1】:

    文档不正确。 MEF 最初在商店应用程序的包装盒中提供,但由于各种原因,它在 RTM 之前被撤下。目前,我们在 .NET 4.5 和应用商店应用 (https://nuget.org/packages/microsoft.composition) 之间提供了更新版本的 MEF,但在 Silverlight、.NET 和应用商店应用之间不可用。

    这是我们正在考虑的未来版本。如果您觉得它很重要,您能否在 uservoice 上提出建议:http://visualstudio.uservoice.com/forums/121579-visual-studio/category/31481-net。在确定我们下一步的工作时,客户反馈/请求会受到很大影响。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多