仅在构建我的应用程序后找不到HtmlAgilityPack参考 [英] HtmlAgilityPack Reference not found only after building my application

查看:46
本文介绍了仅在构建我的应用程序后找不到HtmlAgilityPack参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在从Visual Studio中使用HTMLAgilityPack,没有任何问题.我将HtmlAgilityPack提取到HD中,并添加了文件 HtmlAgilityPack.dll 作为对C#应用程序的引用.同样,在Visual Studio中,一切工作都非常出色.然后,我构建了解决方案,并尝试在Visual Studio外部运行应用程序(作为独立的桌面可执行文件),并且在运行应用程序时出现以下错误:

I have been using HTMLAgilityPack from within Visual Studio without a single problem. I extracted HtmlAgilityPack to my HD, and added the file HtmlAgilityPack.dll as a reference to my C# application. Again everything is working splendid from within Visual Studio. I then built my solution and attempted to run my application outside of visual studio (as a standalone desktop executable file) and I get the following error when I run my application:

您的应用程序中发生了意外的异常.如果您单击继续,应用程序将....无法加载文件或程序集'HtmlAgilityPack,版本= 1.4.0.0.Culture = neutral.PublicKeyToken = bd319b ..."或其依赖项之一.系统找不到指定的文件."

"Unhanded exception has occurred in your application. If you click Continue, the application will .... Could not load file or assembly 'HtmlAgilityPack, Version=1.4.0.0. Culture=neutral.PublicKeyToken=bd319b...' or one of its dependencies. The system cannot find the file specified."

系统怎么可能找不到指定的文件?Visual Studio可以轻松找到它...

How is is possible that the system can't find the file specified? Visual Studio had no trouble finding it...

我可以根据要求提供任何其他信息.

I can provide any additional information upon request.

谢谢您对此提供的任何帮助-埃文(Evan)

Thank you for any help with this one - Evan

推荐答案

我想出了这一点.问题是我使用的是HtmlAgilityPack的实验副本.我切换到完整"版本这里,现在一切正常!

I figured this one out. The problem was that I was using an EXPERIMENTAL copy of HtmlAgilityPack. I changed over to the 'full' version HERE and everything works great now!

这篇关于仅在构建我的应用程序后找不到HtmlAgilityPack参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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