0

我的两个 Windows Phone 应用程序中有这条线:

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 Phone 页面(工作页面),另一个是全景页面:S

任何想法为什么我有这个警告?

谢谢你

4

1 回答 1

2

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

于 2012-05-13T15:31:48.610 回答