【问题标题】:Using Automapper with Metro Application将 Automapper 与 Metro 应用程序一起使用
【发布时间】:2012-04-10 20:21:09
【问题描述】:

我正在使用 XAML 编写一个 Windows 8 Metro 应用程序,并尝试使用 NuGet 向 Automapper 添加一个引用,但它说它不受支持。有没有解决的办法?为 Metro 应用添加引用有什么要求?

【问题讨论】:

    标签: xaml automapper windows-8 microsoft-metro


    【解决方案1】:

    NuGet 目前支持将包安装到 Metro 应用 (work item #1527),但它确实需要为 WinRT 编译包库。

    我查看了 Automapper,它只支持 .Net 4.0 和 Silverlight 4,它需要为 WinRT 更新程序集。注意:其他没有程序集的包应该可以在 Metro 应用程序中安装。

    【讨论】:

      【解决方案2】:

      不管 NuGet - 绝对没有在 WinRT 中首先重新编译的 Metro 项目中不能包含任何外部或第三方程序集。有一个例外 - Portable Class Libraries。但是 PCL 有很多限制,并不是您想要的。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-10-07
        • 2019-12-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-01-15
        相关资源
        最近更新 更多