c# - Windows 应用商店应用程序的 NSoup 替代方案

标签 c# .net windows-8 jsoup windows-store-apps

Windows 应用商店应用程序是否有 NSoup 的替代方案?

我无法发布我的应用,因为它因以下原因未通过认证:

发现错误:支持的 API 测试检测到以下错误:

API System.ICloneable in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.IO.FileStream in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.UriFormatException in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Collections.Specialized.NameValueCollection in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Collections.Specialized.NameObjectCollectionBase in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Collections.Specialized.NameObjectCollectionBase.KeysCollection in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Web.HttpUtility in SYSTEM.WEB, PUBLICKEYTOKEN=B03F5F7F11D50A3A is not supported for this application type. NSoup.dll calls this API.
API System.String.Format(System.String,System.Object) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.String.Format(System.String,System.Object,System.Object) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeFile in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeFtp in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeGopher in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeHttp in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeHttps in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeMailto in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeNetPipe in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeNetTcp in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeNews in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Uri.UriSchemeNntp in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.UriFormatException.#ctor(System.String) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.IO.FileStream.get_Name in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Text.StringBuilder.AppendFormat(System.String,System.Object) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.String.Compare(System.String,System.String,System.Boolean) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Net.WebRequest.GetRequestStream in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Net.WebRequest.GetResponse in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Text.Encoding.GetString(System.Byte[]) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Net.HttpWebRequest.set_AllowAutoRedirect(System.Boolean) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Net.WebRequest.set_Timeout(System.Int32) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Net.HttpWebRequest.set_ReadWriteTimeout(System.Int32) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Net.WebHeaderCollection.Add(System.Net.HttpRequestHeader,System.String) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Net.HttpWebRequest.set_Referer(System.String) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Net.HttpWebRequest.set_UserAgent(System.String) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Collections.Specialized.NameValueCollection.Add(System.String,System.String) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Collections.Specialized.NameObjectCollectionBase.get_Keys in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Collections.Specialized.NameObjectCollectionBase.KeysCollection.GetEnumerator in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Collections.Specialized.NameValueCollection.get_Item(System.String) in SYSTEM, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls this API.
API System.Web.HttpUtility.UrlEncode(System.String,System.Text.Encoding) in SYSTEM.WEB, PUBLICKEYTOKEN=B03F5F7F11D50A3A is not supported for this application type. NSoup.dll calls this API.
API System.IO.Stream.Close in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. NSoup.dll calls t

他的 API。

最佳答案

尝试HTML Agility Pack .

这是一个可爱的 HTML 解析器,通常推荐用于此目的。它将获取格式错误的 HTML,并将其转换为 XHTML,然后转换为可遍历的 DOM,就像 XML 类一样。因此,对于您在野外找到的代码非常有用。

关于c# - Windows 应用商店应用程序的 NSoup 替代方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13324777/

相关文章:

c# - 针对 Schema.org 验证 JSON-LD

.net - 如何将 GetType() 用于 CheckBox?

c# - 每次我选择一个项目时,ListBox 上不再显示图像

c# - 如何在 Canvas 上绘制文本

windows-8 - 使用 Webview 下载 Windows 8

c# - 未分配的变量和 "Not all code paths return a value"解决方法?

java - jni4net 不兼容的类更改错误

c# - 如何从 lineX 读取到 lineY C#

.net - 为什么 Color.FromArgb(255, 255, 255, 255) != Color.White?

windows-8 - 在 Metro 应用程序中共享契约(Contract)