krzema12 / GeocachingToolbox

A .NET library for interfacing geocaching services
4 stars 1 forks source link

Portability #22

Open lploumen opened 8 years ago

lploumen commented 8 years ago

As you wrote in the documentation: Portability in terms of working on multiple platforms. Also development should be possible on various platforms.

I think it would be useful to design this library as PCL so that it can be use effortless on different platforms. Do you plan to add support for Windows Phone ? The problem is HtmlAgilityPack does not support XPath syntax on WP ( = no SelectNodes method). An alternative would be to use HtmlAgilityPack with Linq syntax (What I've used in my lib).

krzema12 commented 8 years ago

About PCL: I first hear of it, and I have no idea how much work it requires to adapt the current code to Portable Class Library. Can you please describe it briefly?

Regarding portability in general: I had in mind that the library will work on Mono, and then it can be used to create a cross-platform mobile app with shared code base. I thought of Xamarin - AFAIK it allows to create apps for Android, iOS and Windows Phone.

If Xamarin turns out to be bad idea, then sure, support specifically for Windows Phone is also a good idea. Especially if the library will remain usable as it is now, i.e. for regular .NET and Mono environments.