用于Windows Phone的VB silverlight" System.Xml.Linq"

时间:2012-05-13 15:29:25

标签: vb.net silverlight windows-phone-7

我在两个Windows手机应用程序中使用此行:

Dim doc = XDocument.Parse(e.Result) 在其中一个应用程序中工作正常,另一个似乎错了... 实际上它找不到对象“XDocument”

当我输入时:

Imports System.Xml.Linq

它给我发了一个警告:

Warning 2
Namespace or type specified in the Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

工作的应用程序和发回给我的应用程序之间的唯一区别,这个问题是一个是一个简单的Windows电话页面(工作的),另一个是全景页面:S

我有这个警告的任何想法吗?

谢谢

1 个答案:

答案 0 :(得分:2)

我认为您可能需要首先使用Visual Studios“添加引用”命令包含对System.XML.Linq的引用(右键单击项目资源管理器中的项目节点,添加引用)。