jieba.NET icon indicating copy to clipboard operation
jieba.NET copied to clipboard

How to config the ConfigFileBaseDir in Abp framework

Open Chen-Dixi opened this issue 4 years ago • 2 comments

你好 我在用Abp 框架开发一个服务,在Domain.Shared这个域里面用到了Jieb.Net,因为bin/obj/文件夹都放在gitignore里面了,所以不能用默认的ConfigFileBaseDir配置,请问我该怎么做。

Chen-Dixi avatar Jan 02 '21 08:01 Chen-Dixi

JiebaNet.Segmenter.ConfigManager.ConfigFileBaseDir=你的配置文件路径 这样不行吗

suichuan avatar Jan 04 '21 09:01 suichuan

解决啦THX,也是用的这个方法。根据你的源码,我在csproject文件 里面加上这些标签就好了

<None Update="Jieba\Resources\char_state_tab.json">
	    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>

Chen-Dixi avatar Jan 04 '21 09:01 Chen-Dixi