Castle.Core for WindowsPhone71

时间:2014-01-03 11:10:21

标签: .net nuget castle-dynamicproxy

我想使用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所在的程序集)

我不明白。 有人有这方面的经验吗?我该如何解决这个问题呢?

1 个答案:

答案 0 :(得分:0)

Silverlight不再支持Windsor了。如果我是正确的WP71是一个silverlight平台。你可以试试Windsor 3.1。这个版本仍然应该支持silverlight。 (见:http://www.castleproject.org/blog/2012/08/windsor-and-core-3-1-released/