How to add System.ServiceModel.Syndication.dll in Windows Phone 8 project?

走远了吗. 提交于 2019-12-30 13:48:10

问题


I am trying to build an rss feed app. and i want to add System.Servicemodel.Syndication. But when i am trying to add, it is saying a reference to a higher version or incompatible assembly cannot be added to the project. After reading some post on how to solve it, i try to unblock the assembly but i found no unblock button. That means the project is already unblocked. So how can i solve the issue?? Is there any alternative way to read rss?


回答1:


Judging from the documentation here Adding a Reference to the Syndication DLL you need to install the Silverlight 4 SDK and then reference the v4 version of the dll located at Microsoft SDKs/Silverlight/v4.0/Libraries/Client/.

Windows Phone is based on Siverlight v4.




回答2:


this assembly is designed for silverlight 5 so you cannot add to the project due to compatibility issues regarding .Net 3.5 +




回答3:


See the article at http://www.wintellect.com/blogs/jprosise/silverlight-for-windows-phone-programming-tip-2 on how to use LINQ to XML instead

(btw that article says the alternative is to use the respective dll from the Silverlight 3 SDK)

another way is to use a Web Service and parse the RSS on the server instead, see example at: http://www.codeproject.com/Articles/83859/A-Simple-Silverlight-RSS-Reader



来源:https://stackoverflow.com/questions/20259523/how-to-add-system-servicemodel-syndication-dll-in-windows-phone-8-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!