在可移植类库中包含XPathSelectElement [英] include XPathSelectElement in portable class library
问题描述
如何在可移植类库中使用XPathSelectElement
?当我尝试在项目中包含System.Xml.XPath
程序集时,出现以下错误:
How can I use XPathSelectElement
in a portable class library? When I try to include System.Xml.XPath
assembly in the project, I get the following error:
在未引用的程序集中定义了类型'System.Xml.Linq.XElement'.您必须添加对程序集'System.Xml.Linq,Version = 2.0.5.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'的引用.
The type 'System.Xml.Linq.XElement' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
我的可移植类库已经引用了System.Xml.Linq
.
My portable class libraries already have a reference to System.Xml.Linq
.
推荐答案
不幸的是,,该包提供了至少System.Xml.XPath命名空间中的某些功能.
Unfortunately, that provides at least some of the functionality in the System.Xml.XPath namespace.
这篇关于在可移植类库中包含XPathSelectElement的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!