gpt4 book ai didi

Json.net 与 Windows Phone 8.1 不兼容

转载 作者:行者123 更新时间:2023-12-01 05:12:07 25 4
gpt4 key购买 nike

尝试通过 nuget 添加 NewtonSofts json.net 库。单击安装时出现“不兼容”对话框。

1...在 Visual Studio 2013 更新 2 中为 Windows Phone 8.1 项目创建新的“空白应用程序”
2...单击管理 NuGet 包
3...找到json.net 6.0.3版
4...错误对话框说不兼容

Dialog 还列出了兼容版本,其中包括 wp7、wp80 和称为 wpa81 的东西。

我得到的错误如下:

Installing 'Newtonsoft.Json 6.0.3'.
Successfully installed 'Newtonsoft.Json 6.0.3'.
Adding 'Newtonsoft.Json 6.0.3' to App1.
Uninstalling 'Newtonsoft.Json 6.0.3'.
Successfully uninstalled 'Newtonsoft.Json 6.0.3'.
Install failed. Rolling back...
Could not install package 'Newtonsoft.Json 6.0.3'. You are trying to install this package into a project that targets 'WindowsPhoneApp,Version=v8.1', 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.

最佳答案

我今天也遇到了这个问题。为了修复它,这是一个愚蠢的问题,我在我的项目中取消选中 WP8.1,安装了 JSON.NET,然后进入并被动积极地重新检查它,但它起作用了!在两个不同的项目中,我可能会补充。在那之后,我构建、部署、测试和所有这些好东西都没有问题。我不知道为什么,但我很确定作为有经验的开发人员,我们都学会了永远不要质疑有效的东西。

关于Json.net 与 Windows Phone 8.1 不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23953230/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com