dillenmeister / Trello.NET

A .NET client library for Trello
192 stars 85 forks source link

Install package in Windows Phone solution #25

Open gsferreira opened 11 years ago

gsferreira commented 11 years ago

Has anyone installed the Nuget package successively in a WP 7.1 solution? Is it possible?

Thanks

dillenmeister commented 11 years ago

No effort has been put in to get it to work on WP, so if it does it's just "luck".

Did you try? What happened?

gsferreira commented 11 years ago

The RestSharp implementation for Portable Class Libraries doesn't support synchronous requests like this: var response = Execute<T>(request);

dillenmeister commented 11 years ago

Do the methods on Trello.Async work?

gsferreira commented 11 years ago

Yes. Portable RestSharp doesn't implement Execute but ExecuteAsync is there.

dillenmeister commented 11 years ago

Ok, so you can use Trello.NET in a WP project then?

gsferreira commented 11 years ago

No, because you can't compile it for a Portable version. because in trello.net we have Execute that does not exists in restsharp Portable

dillenmeister commented 11 years ago

Do you have any ideas how to make Trello.NET work on WP? What alternatives are there?

gsferreira commented 11 years ago

@dillenmeister I've made a fork of Trello.NET to make it compatible with Portable Libraries. You can see here https://github.com/gsferreira/Trello.NET the changes that I've made. I didn't test every methods. You can also take a look into RestSharp repository to get some inspiration https://github.com/restsharp/RestSharp