我想使用来自DynamicProxy的Castle.Core,但我不能使用,因为:
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我读到:
要使用城堡DynamicProxy,您需要以下环境:安装了以下运行时之一的.NET版本3.5 sp1或更新的Silverlight版本4或更高版本的Castle.Core.dll ( DynamicProxy所在的程序集)
我什么都不了解。有人有这方面的经验吗?我怎样才能解决这个问题?
发布于 2014-01-17 08:06:54
Silverlight不再受温莎的支持。如果我是正确的,WP71是一个silverlight平台。你可以试试温莎3.1。这个版本应该仍然支持silverlight。(见:http://www.castleproject.org/blog/2012/08/windsor-and-core-3-1-released/)
https://stackoverflow.com/questions/20902264
复制相似问题