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

Resources(dictionary) not been copied automatically #5

Open
VShawn opened this issue Mar 10, 2021 · 7 comments
Open

Resources(dictionary) not been copied automatically #5

VShawn opened this issue Mar 10, 2021 · 7 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@VShawn
Copy link

VShawn commented Mar 10, 2021

When I test your lastest nuget package following the approach in readme.md, it still report char.bin not found error.

image

Then I test the elder verison(Kawazu1.0.0) with .net core 3.1, the resources was not been copied, either.

image

@ookii-tsuki
Copy link
Collaborator

if that doesn't work you can just make a folder called IpaDic in your app directory and then copy the following files in it:
image

@VShawn
Copy link
Author

VShawn commented Mar 10, 2021

if that doesn't work you can just make a folder called IpaDic in your app directory and then copy the following files in it:

That's what I did, this ticket is just for checking if there are any automatically approaches
anyway copy files manually isn't a good solution for CI/CD

@Cutano
Copy link
Owner

Cutano commented Mar 10, 2021

I think this is caused by the Nuget implict reference policy. I referenced LibNMeCab package in Kawazu, but when it published as a Nuget package and used by someone else, the reference of LibNMeCab became implicit, and it can't copy the files automatically as usual.
However, if you install LibNMeCab manually, it will copy the dics normally.

I don't know how to fix this right now, but I'll try to solve it asap.

@Cutano Cutano added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 10, 2021
@VShawn
Copy link
Author

VShawn commented Mar 10, 2021

However, if you install LibNMeCab manually, it will copy the dics normally.

As I know, some nuget package can auto add it's reference nuget package to your project. Maybe your can try to auto install the LibNMeCab when we install Kawazu

e.g.

once you install ServiceStack.OrmLite.Sqlite, the package System.Data.SQLite.Core will be installed at the sametime.

i don't know how they did that.

@Cutano
Copy link
Owner

Cutano commented Mar 10, 2021

However, if you install LibNMeCab manually, it will copy the dics normally.

As I know, some nuget package can auto add it's reference nuget package to your project. Maybe your can try to auto install the LibNMeCab when we install Kawazu

e.g.

once you install ServiceStack.OrmLite.Sqlite, the package System.Data.SQLite.Core will be installed at the sametime.

i don't know how they did that.

It actually did auto add the reference and you can even use them in code. But the reference is implicit:
image
image

I don't know how to make the LibNMeCab.ipaDic be installed explicitly.
Or maybe I can copy those dic files manually in code, but I don't think it is a good way to solve this problem and may cause a waste of disk space due to the data redundancy.

@hidemat
Copy link

hidemat commented Mar 10, 2021

As a temporary solution to keep playing around with the Kawazu Library. Where would I find these files to copy to my project directory? I tried installing the LibNMeCab and LibNMeCab.IpaDicBin nuget packages but the directory is still not showing up.

Edit: Found it:
https://github.com/komutan/NMeCab

Kawasu is pretty cool by the way :)

@Cutano
Copy link
Owner

Cutano commented Mar 11, 2021

As a temporary solution to keep playing around with the Kawazu Library. Where would I find these files to copy to my project directory? I tried installing the LibNMeCab and LibNMeCab.IpaDicBin nuget packages but the directory is still not showing up.

Edit: Found it:
https://github.com/komutan/NMeCab

Kawasu is pretty cool by the way :)

If you install LibNMeCab.IpaDicBin manually, after compile and run, the files will be automatically copied to the output directory. Or you can find those files in Kawazu Nuget installation directory, and they are linked to your project by default, you can find them in the solution panel in Visual Studio :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants