问题描述
我一直在从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:
系统怎么可能找不到指定的文件?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参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!