无法将 HTMLTidy dll (libtidy.dll) 附加到 Visual Studio
运气不太好,我一直在尝试在 Visual Studio 中附加 HTMLTidy c++ 库 dll,但是每次我都会在不同的版本中遇到各种错误。我添加对项目的引用,然后手动选择 dll,该 dll 已复制到项目文件夹内的 lib 文件夹中。
我尝试的第一个 dll 来自 Mark Beaton,我正在使用他的 HTMLTidy 包装器,因为它似乎是最新的。标准的 Win32 已经构建完成。
我也尝试过从官方 HTMLTidy 页面构建,同样是 dll
< a href="http://www.paehl.com/open_source/?HTML_Tidy_for_Windows" rel="nofollow noreferrer">官方构建
引用时出错,请帮忙!我尝试过从源代码编译,但源代码似乎与 VS 2010 不兼容。
Without much luck I've been trying to attach the HTMLTidy c++ library dll within Visual Studio, however everytime I get various errors with different builds. I'm adding a reference to the project and then manually selecting the dll, which has been copied into a lib folder within the project folder.
The first dll I tried was from Mark Beaton, and I'm using his HTMLTidy wrapper as it seems the most up to date. The standard Win32 one was built.
I've also tried the build from the official HTMLTidy page, again the dll
The error when referencing, please help! I've tried compiling from source, but the source doesn't seem compatible with VS 2010.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
libtidy.dll 是非托管 C DLL,因此无法在 Visual Studio 的“添加引用”对话框中添加对它的引用。您需要将 https://github.com/markbeaton/TidyManaged 中的 C# 代码构建到托管 DLL 中,并添加引用改为该 DLL。
确保 libtidy.dll 已复制到您的输出文件夹;您可以通过将 DLL 文件添加到项目中并将其属性更改为“复制到输出”来实现此目的。
libtidy.dll is an unmanaged C DLL, so you can't add a reference to it in Visual Studio's Add Reference dialog. You need to build the C# code from https://github.com/markbeaton/TidyManaged into a managed DLL, and add a reference to that DLL instead.
Make sure that libtidy.dll is copied to your output folder; you can achieve this by adding the DLL file to your project, and changing its properties to "Copy to Output".