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

How to config the ConfigFileBaseDir in Abp framework #78

Open
Chen-Dixi opened this issue Jan 2, 2021 · 2 comments
Open

How to config the ConfigFileBaseDir in Abp framework #78

Chen-Dixi opened this issue Jan 2, 2021 · 2 comments

Comments

@Chen-Dixi
Copy link

Chen-Dixi commented Jan 2, 2021

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

@suichuan
Copy link

suichuan commented Jan 4, 2021

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

@Chen-Dixi
Copy link
Author

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

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

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