0
我尝试使用命令install-package newtonsoft.json
通过NuGet安装Json.Net。将Json.Net安装到针对Windows Phone 7的项目时出错
我得到了如下所示的错误。我该如何解决这个问题?
Install-Package Newtonsoft.Json
Installing 'Newtonsoft.Json 6.0.6'.
Successfully installed 'Newtonsoft.Json 6.0.6'.
Removing 'Newtonsoft.Json 6.0.3' from ReadJSON.
Successfully removed 'Newtonsoft.Json 6.0.3' from ReadJSON.
Adding 'Newtonsoft.Json 6.0.6' to ReadJSON.
Uninstalling 'Newtonsoft.Json 6.0.6'.
Successfully uninstalled 'Newtonsoft.Json 6.0.6'.
Install failed. Rolling back...
Install-Package : Could not install package 'Newtonsoft.Json 6.0.6'. 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
that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Newtonsoft.Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
您是否尝试联系软件包作者? – 2014-10-27 14:00:08