将HtmlAgilityPack与MonoTouch应用程序结合使用会产生参考错误 [英] Using HtmlAgilityPack with MonoTouch app gives reference error

查看:44
本文介绍了将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,则不会编译任何内容.

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 Simulator,但是切换到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天全站免登陆