NHunspell package on NuGet not referencing and being able to use on Xamarin Studio

人盡茶涼 提交于 2019-12-10 00:19:59

问题


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.

How do I add NHunspell to my project?


回答1:


Not every .NET library is compatible with Xamarin. They generally have to be either built against the appropriate Xamarin Framework, or build using a compatible PCL Profile.

scan.xamarin.com can tell you if a given DLL is compatible or not.




回答2:


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.

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.

The latest packages (without NuGet) are here: http://download.crawler-lib.net/NHunspell/



来源:https://stackoverflow.com/questions/28377832/nhunspell-package-on-nuget-not-referencing-and-being-able-to-use-on-xamarin-stud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!