[英]FourSquare Client library for WP8
Windows Phone 8是否有可用的foursquare客戶端庫。我檢查了foursquare網站和此客戶端“ Sharp Square”,但是每當我嘗試將其包含在我的項目中時,我都收到版本不兼容錯誤
install-package : Could not install package 'SharpSquare 1.0.0.2'. You are trying to
install this package into a project that targets 'WindowsPhone,Version=v8.0',
but the package does not contain any assembly references or content files that are
compatible with that framework.
在構建項目后,我也嘗試添加.dll,但出現了相同的錯誤。
在GitHub( https://github.com/TICLAB/SharpSquare )上查看SharpSquare的源代碼,沒有適用於Windows Phone 8的版本。
您需要將其轉換為Windows Phone庫。 這不難,只需刪除對System.Web的不必要的引用並使所有請求變為異步即可。 這是我的看法,它可以編譯,但我尚未對其進行測試: https : //dl.dropboxusercontent.com/u/73642/SharpSquareWP8.zip
我認為您可以做的最好的事情就是利用Foursquare REST API https://developer.foursquare.com/docs/
還有像RestSharp這樣的庫可以與他們合作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.