Restsharp dll是为Compact Framework 3.5编译的吗? [英] Restsharp dll compiled for Compact Framework 3.5?

查看:67
本文介绍了Restsharp dll是为Compact Framework 3.5编译的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建Windows Mobile 6.0应用程序,我想使用restsharp库来使用rest服务中的数据.我发现可以为紧凑框架3.5编译RestSharp的信息(无法从官方站点获得).

I'm building a windows mobile 6.0 application and I wanted to use restsharp library to consume data from a rest service. I've found information that RestSharp can be compiled for compact framework 3.5 (as is not available from the official site).

但是,有人成功为CF编译了程序集吗?如果是,可以有人提供下载程序集的链接.谢谢

But, does anybody have successfully compiled the assembly for CF? If yes, could anybody provide a link to download the assembly. Thanks

推荐答案

我不知道准备使用的程序集的下载位置.

I do not know a download location for the ready-to-use assembly.

我将启动一个新的CF2项目,并在VS的另一个实例中打开原始的restsharp解决方案.另外,打开两个文件浏览器,将restsharp源文件复制到新的CF2项目目录中.您应该维护相同的解决方案布局和文件夹(如果有).然后将文件复制到CF2目录中,并使用CF2解决方案中的添加现有文件".您需要使用相同的名称空间以及项目和解决方案名称(使工作更容易).

I would start a new CF2 project and in another instance of VS open the original restsharp solution. Additionally open two file explorer to copy files of the restsharp source to the new CF2 project directory. You should maintain the same solution layout and folders (if any). Then copy the files over to CF2 dirs and use Add Existing Files in the CF2 solution. You need to use the same namespace and project and solution names (makes live easier).

现在尝试编译.如果幸运的话,所有内容都可以正确编译.但是大多数情况下,您必须调整代码或编写与CF2兼容的包装器.如果在CF2中有两个无法完全模拟"的FullFramework构造,则可能不得不放弃.但是正如您所说的,有与CF兼容的资源.

Now try to compile. If you are lucky, everything compiles without error. But mostly you have to either adjust code or write CF2 compatible wrappers. If there are two many FullFramework constructs that can not be 'emulated' in CF2, you may have to give up. But as you said, there are CF compatible sources.

您提到CF3.5,并要求提供CF2.RestSharp可能只会编译为CF3.5程序集.

You mentionend CF3.5 and asked for CF2. Possibly RestSharp will only compile as CF3.5 assembly.

另请参见 http://blog.opennetcf.com/2013/08/22/restsharp-dont-serialize-null-properties/

顺便说一句:github repro( https://github.com/restsharp/RestSharp )显示了一个CF解决方案文件RestSharp.Compact.sln和RestSharp.Compact.csproj.这些应该可以在VS2008上使用.

BTW: the github repro (https://github.com/restsharp/RestSharp) shows a CF solution file RestSharp.Compact.sln and RestSharp.Compact.csproj. These should work with VS2008.

这篇关于Restsharp dll是为Compact Framework 3.5编译的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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