Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,关于字典更新的问题 #4

Open
panchengtao opened this issue Jan 12, 2017 · 1 comment
Open

你好,关于字典更新的问题 #4

panchengtao opened this issue Jan 12, 2017 · 1 comment

Comments

@panchengtao
Copy link

您说字典资源随Dll发布了(发现放在Resource文件夹下),那我如果要新增资源的话,是不是只需要将项目下过来后,将词语加入词典再重新编译再在我的项目中引用就能生效了呢

@LonghronShen
Copy link
Collaborator

其实没有封死以前的数据加载方式,仔细看代码,在WordDictionary.LoadFromBinFile函数,他是在验证文件系统文件不存在时才会去走内嵌资源文件的。因此如果你有新的词库,直接按照约定路径或者手动设定选项放置即可优先加载。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants