The Windows Phone Official Sample cannot even compile : Syndication misssing

别等时光非礼了梦想. 提交于 2020-01-07 02:27:06

问题


I tried to compile http://msdn.microsoft.com/en-us/gg266450

But it says It cannot find System.ServiceModel.Syndication

I have 2, 3.5, 4 .NET framework installed.

In add reference I can see System.ServiceModel and System.ServiceModel.Web version 2 not anything like 3 or 4 so I wonder how I could add that namespace as mentioned here http://msdn.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationfeed(v=vs.95).aspx

This is rather incredible that MS has messed with namespaces and create examples that cannot even work. Other people did have same problem http://msdn.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationfeed(v=vs.95).aspx

I confirm that MS has messed up by moving syndication from .net framework to silverlight sdk !


回答1:


  • DOTNET 3.5: add a reference to the System.ServiceModel.Web.dll
  • DOTNET 4.0: add a reference to the System.ServiceModel.dll

This will fix your missing Syndication exception.




回答2:


What was said in forum that doesn't fix the problem but finally I found another post that did fix the problem : Syndication is now in Silverlight SDK!



来源:https://stackoverflow.com/questions/8631323/the-windows-phone-official-sample-cannot-even-compile-syndication-misssing

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