0
此處的用戶給了我一個適用於Android的HtmlAgilityPack。我的問題是我如何在MonoDevelop(Android的Mono - C#)中使用它?Mono for Android Html Agility Pack
此處的用戶給了我一個適用於Android的HtmlAgilityPack。我的問題是我如何在MonoDevelop(Android的Mono - C#)中使用它?Mono for Android Html Agility Pack
你必須從代碼
編譯下載源
進入
\htmlagilitypack-99964\Branches\1.4.0\HtmlAgilityPack
編輯csproj
變化
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
保存和載入
修正錯誤
跟蹤 - >調試
去除塊
if (!SecurityManager.IsGranted(new DnsPermission(PermissionState.Unrestricted)))
{
//do something.... not at full trust
try
{
RegistryKey reg = Registry.ClassesRoot;
reg = reg.OpenSubKey(extension, false);
if (reg != null) contentType = (string)reg.GetValue("", def);
}
catch (Exception)
{
contentType = def;
}
}
去除塊
if (SecurityManager.IsGranted(new RegistryPermission(PermissionState.Unrestricted)))
{
try
{
RegistryKey reg = Registry.ClassesRoot;
reg = reg.OpenSubKey(@"MIME\Database\Content Type\" + contentType, false);
if (reg != null) ext = (string)reg.GetValue("Extension", def);
}
catch (Exception)
{
ext = def;
}
}
使用dll
在bin/debug
文件夾
否,你會使用它的方式不同。淨。看到這裏,它是一個試圖解釋如何使用它的網站:http://www.4guysfromrolla.com/articles/011211-1.aspx ...承認HTMLAgilityPack文檔是稀疏的。 – Arran
我使用它的.NET,但爲Android的一個沒有.dll(只有.cs文件),所以我不知道如何安裝它。 – fanboy555