繁体   English   中英

适用于WindowsPhone71的Castle.Core

[英]Castle.Core for WindowsPhone71

我想使用Castle.Core的DynamicProxy,但是我不能因为:

PM> Install-Package Castle.Core
    Installing 'Castle.Core 3.2.2'.
    Successfully installed 'Castle.Core 3.2.2'.
    Adding 'Castle.Core 3.2.2' to foo.
    Uninstalling 'Castle.Core 3.2.2'.
    Successfully uninstalled 'Castle.Core 3.2.2'.
    Install failed. Rolling back...
    Install-Package : Could not install package 'Castle.Core 3.2.2'. You are trying to install this package into a project that targets 'Silverlight,Version=v4.0,Profile=WindowsPhone71', but the package does not contain any assembly references or content files th
    at are compatible with that framework. For more information, contact the package author.
    At line:1 char:1
    + Install-Package Castle.Core
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

我读:

要使用Castle DynamicProxy,您需要以下环境:安装了.NET版本3.5 sp1或更高版本的Silverlight版本4或更高版本Castle.Core.dll(DynamicProxy所在的程序集)的以下运行时之一

我不明白。 有人对此有经验吗? 我该如何解决这个问题?

温莎不再支持Silverlight。 如果我是正确的,WP71是Silverlight平台。 您可以尝试使用Windsor 3.1。 此版本仍应支持silverlight。 (请参阅: http : //www.castleproject.org/blog/2012/08/windsor-and-core-3-1-released/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM