.net Castle.WindowsPhone71的核心
我想使用Castle.Core的DynamicProxy,但我不能,因为:.net Castle.WindowsPhone71的核心,.net,nuget,castle-dynamicproxy,.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
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所在的程序集)
我不明白。
有人对此有经验吗?如何解决此问题?Windsor不再支持Silverlight。如果我是对的,WP71是silverlight平台。你可以试试温莎3.1。此版本仍应支持silverlight。(见:)