JSON.NET Visual Studio 2008和.NET 3.5 Compact Framework [英] JSON.NET Visual Studio 2008 and .NET 3.5 Compact Framework

查看:151
本文介绍了JSON.NET Visual Studio 2008和.NET 3.5 Compact Framework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在带有.NET 3.5 Compact Framework的Visual Studio 2008中使用JSON.NET吗?以及如何在IDE中安装/配置它?我已经搜索了互联网,但找不到它.

Can I use JSON.NET in Visual Studio 2008 with .NET 3.5 Compact Framework? And how can I install/Configure it in the IDE? I've searched the internet but could not find it.

我发现此对Visual Studio 2008的NuGet支持尝试安装JSON.NET通过NuGet,但无法正常工作.本教程的结果是错误找不到包'your.package.name':

I found this NuGet Support for Visual Studio 2008 to try install JSON.NET through NuGet but could not get it working. The result of this tutorial was an error Unable to find package 'your.package.name':

推荐答案

我认为NuGet不会在这里为您提供帮助. Json.NET在版本 4.0.1中删除了对.NET 3.5 Compact Framework的支持. ,如

I don't think NuGet will help you here. Json.NET removed support for the .NET 3.5 Compact Framework in release 4.0.1, as is stated in the 4.0.1 release notes:

此版本中的其他主要更改是两个新版本以及对现有版本的删除.删除的是Compact Framework. VS2010不再支持Compact Framework,因此如果您以Compact Framework为目标,则将是3.5 r8的最新版本.

Other major changes in this release are two new builds and the removal of an existing build. Removed is Compact Framework. VS2010 no longer supports Compact Framework so 3.5 r8 will be its last release if you are targeting the Compact Framework.

确实支持它的Json.NET的最新版本是 3.5 .8 ,您可以从此处手动下载:

The most recent version of Json.NET that does support it is 3.5.8, which you can download manually from here:

https://github.com/JamesNK/Newtonsoft.Json/releases/download/3.5.8/Json35r8.zip

具有手动下载的Json35r8.zip,您可以解压缩文件,导航到Json35r8\Bin\Compact,然后使用

Having manually downloaded Json35r8.zip, you can unzip the file, navigate to Json35r8\Bin\Compact, and manually add a reference to Newtonsoft.Json.Compact.dll using the Add Reference dialog box.

请注意,Json.NET 3.5.8已经足够旧,以至于某些基本问题已被破坏.参见例如 JSON.net CF 3.5,请验证JSON是否完整 .

Note that Json.NET 3.5.8 is old enough that some basic things are broken. See e.g. JSON.net CF 3.5, verify that JSON is complete for an example.

这篇关于JSON.NET Visual Studio 2008和.NET 3.5 Compact Framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆