English 中文(简体)
error while adding restsharp refernce
原标题:
  • 时间:2011-05-05 04:42:04
  •  标签:
  • restsharp

I have a problem adding the reference of REstsharp.dll. It says:

"Reference cannot be added to d:Vinay sreeRestSharp-101.2RestSharp.dll because it was not built using the Windows Phone runtime. Windows Phone Projects will work only with Windows Phone assemblies."

error while adding the reference for restsharp.dll. With that the sample given in the blogs doesnot work as it gives error Execute method cannot be resolved.

问题回答

Add a reference to RestSharp.WindowsPhone.dll and Newtonsoft.Json.WindowsPhone.dll as those are the version specific to the phone.





相关问题
How to use RestSharp with OAuth?

I am confused which factory OAuth1Authenticator factory method should I use. I think I should get a consumer secret token (can I get it with RestSharp?), then use OAuth1Authenticator.ForRequestToken, ...

Refreshing in RestSharp for Windows Phone

I implemented RestSharp succesfully in my WP7 application, but one issue remains: When I load resources from the server (for example a GET request on http://localhost:8080/cars), the first time the ...

Deserializing XML CDATA into string variable with RestSharp

I m trying to take an RSS feed and deserialize it into a list of rssEntry objects. var Client = new RestClient("url here"); Request = new RestRequest { RequestFormat DataFormat.Xml }; var response = ...

error while adding restsharp refernce

I have a problem adding the reference of REstsharp.dll. It says: "Reference cannot be added to d:Vinay sreeRestSharp-101.2RestSharp.dll because it was not built using the Windows Phone runtime. ...

How to add text to request body in RestSharp

I m trying to use RestSharp to consume a web service. So far everything s gone very well (cheers to John Sheehan and all contributors!) but I ve run into a snag. Say I want to insert XML into the body ...

REST Windows Phone Photo upload

I m trying to upload a photo to a REST api in a Windows Phone 7 application using RestSharp for my Gets/Posts. The post parameters are as follows: photo: The photo, encoded as multipart/form-...

RestSharp v. WebClient?

I m building a Windows Phone 7 Silverlight app. Is there any reason to use RestSharp instead of WebClient? I ve looked around on the RestSharp site, but it s not immediately obvious what the benefits ...

Using restsharp in c# to consume last.fm services

I m trying to connect to the last.fm rest services using restsharp. I can deserialize the simple data found at the example: http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=Cher&...

热门标签