问题描述
所以我是编程的新手,但是我开始使用Xamarin,我尝试从Xamarin Studio上的NuGet添加NHunspell程序包,将其下载,.dlls出现在Resources中,NHunspell出现在Packets中,但是没有. t不会出现在参考"中,因此当我尝试使用NHunspell"时,它将不起作用.我尝试使用Power Shell运行安装"脚本,但显然没有任何改变.
So i'm kind of new to programming but i started using Xamarin and i tried to add NHunspell package from NuGet on Xamarin Studio, it downloads it and the .dlls appear in Resources and NHunspell appear in Packets, but it doesn't appear in References and so when i try "using NHunspell" it doesn't work.I have tried running the "install" script with Power Shell but apparently nothing changed.
如何将NHunspell添加到我的项目中?
How do I add NHunspell to my project?
推荐答案
正如我在每封电子邮件中已经回答过的那样,NHunspell的问题在于它实际上是Hunspell的包装. Hunspell用c或C ++编写,因此可以编译为本地Dll.此时,该版本会为Windows 32位和64位生成两个本机DLL.必须为ARM/Android或Linux生成本机DLL,或者在这些平台上使用本机DLL.将来,我将在X86/X64 Linux上执行此操作.但是此刻我下了雪,所以没有时间表.如果您或其他人愿意捐款,欢迎您.
As I answered you already per Email the problem with NHunspell is that it is in fact an wrapper to Hunspell. Hunspell is written in c or C++ so it compiles to a native Dll. At this time the build produces two native DLLs for Windows 32 Bit and 64Bit. It would be necessary to produce native DLLs for ARM / Android or Linux or ... to use it on these platforms. I will do this for X86/X64 Linux in the future. But at the moment I'm snowed under so there is no timeframe. If you or someone else is willing to contribute, you're welcome.
顺便说一句. NHunspell具有用于正确的本机DLL的解析器.如果您的项目在输出目录中具有本机DLL,则它将在Windows中解析X86或x64.您可以在Xamarin Studio中通过在项目中添加本机DLL并配置复制到输出目录"来做到这一点.但这仅适用于Windows.
BTW. NHunspell has an resolver for the correct native DLL. If your project has the native DLLs in the output directory, it resolves X86 or x64 in windows. You can do this in Xamarin studio by adding the native DLLs in your project and configure "copy to output directory". But this works only in Windows.
最新的软件包(没有NuGet)在这里: http://download.crawler-lib.net/NHunspell/
The latest packages (without NuGet) are here:http://download.crawler-lib.net/NHunspell/
这篇关于NuGet上的NHunspell软件包无法引用,并且可以在Xamarin Studio上使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!