我有一个针对 Windows Phone 7 的项目。我想在该项目中使用 Json.NET。但是当我尝试通过 NuGet 包管理器在我的项目中安装 Json.NET 包时,它显示:
Could not install package 'Newtonsoft.Json 6.0.1'. You are trying to install this package into a project that targets 'portable-win+net45+sl40+wp', but the package does not contain any assembly references or content files that are compatible with that framework.
我认为这是因为最新版本的 Json.NET 不支持 Windows Phone 7。如何安装旧版本的 Json.NET?最好通过 NuGet。与 Windows Phone 7 兼容的最新 Json.NET 版本是什么?
我使用的是 Visual Studio 2012。
最佳答案
在给定的链接中,存在所有版本的 json .net 命令,您可以尝试在 wp7 中支持的任何旧版本...逐一尝试:
关于windows-phone-7 - 为 Windows Phone 7 安装 Json.NET 时出现以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21624878/