将 HtmlAgilityPack 与 MonoTouch 应用程序一起使用会出现参考错误 [英] Using HtmlAgilityPack with MonoTouch app gives reference error

查看:17
本文介绍了将 HtmlAgilityPack 与 MonoTouch 应用程序一起使用会出现参考错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Html Agility Pack 与 MonoTouch 应用程序一起使用,但找不到可以使用它的版本.

I'm trying to use the Html Agility Pack with a MonoTouch application, but cannot find a version that will work with it.

我从 CodePlex 下载了最新的二进制文件,并尝试使用每个 DLL 进行构建它包含.当目标是 iPhone 时,None 不会编译.

I downloaded the latest binaries from CodePlex and I've tried building with every DLL it contains. None will compile when the target is the iPhone.

添加 .NET 20 库将允许它编译到 iPhone 模拟器,但是当切换到 iPhone 时我收到错误:

Adding the .NET 20 library will allow it to compile to the iPhone Simulator, but when switching to the iPhone I get the error:

Error MT2002: Can not resolve reference: System.Diagnostics.TraceListener (MT2002) (MFLPlatinum12)

似乎其他人正在将 HtmlAgilityPack 与 MonoTouch 项目一起使用,所以对我缺少什么有任何想法吗?

It seems like others are using HtmlAgilityPack with MonoTouch projects, so any thoughts as to what I'm missing?

推荐答案

您是从源代码编译还是直接使用 DLL?

Are you compiling from source or using the DLL directly?

您需要创建一个新的 MonoTouch 库项目并添加所有文件以使其正常工作.

You will need to make a new MonoTouch library project and add all the files for it to work.

直接使用 DLL 可能不起作用,因为它不是为 MonoTouch 编译的.

Using a DLL directly likely won't work, since it was not compiled for MonoTouch.

这篇关于将 HtmlAgilityPack 与 MonoTouch 应用程序一起使用会出现参考错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆