Closed da3dsoul closed 4 years ago
That's what's left. It got Microsoft DLLs.
It appears to take runtimepack.Microsoft.WindowsDesktop.App.Runtime runtimes and add .resources.dll
to them. Unfortunately, the deps,json doesn't seem to list them.
The dirty solution would be to check for the existence of these folders, see if they contain nothing but DLLs and move them. I just dumped all possible language codes from netcore. lang.txt
NetCoreBeauty analyses deps.json
to detemine which should be moved. if they aren't moved, they must be not included in deps.json
.
but those files should be listed in deps.json
. btw could you upload a test case?
I'll see if I can make one. This particular project is 14 years old and been through a lot of changes.
https://github.com/da3dsoul/LocalizationTest There you go. Verified. I noticed that for some reason, it creates a bunch of folders for cultures that aren't even supported.
it looks like only the app's localization resources are listed in the deps.json
. the libraries's localization resources aren't listed for some reason.
Yeah, that's why I mentioned the "dirty solution". Ideally, those would be listed, but ideally, this project wouldn't need to be so complex to work.
you are right, there is no need to generate those localization that we don't use at all. i will try re-adding those resources back to deps.json
and see if the app still can read those localization strings. in theory, this should work.
No change. I notice the build failed, as well, and that appears to be a deployment failure.
No change. I notice the build failed, as well, and that appears to be a deployment failure.
ignore the build. are you using Nuget? you need to upgrade the package.
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.2.9" />
To show how I have it set up. I then publish with
dotnet publish -c Release -r win10-x64 -p:PublishTrimmed=false
EDIT: Apparently it doesn't want to format that as code. Probably an issue with the details (collapsible) tag
have you beauty this project before?( check if this is a file called NetCoreBeauty
). if so, you need to set <ForceBeauty></ForceBeauty>
to True
, because NetCoreBeauty only beauty once.
I deleted the build folder prior. Is it kept anywhere else?
entire bin folder?
Yes, though I didn't delete obj
could you set <BeautyLogLevel></BeautyLogLevel>
to Info
and see what output?
btw, could you upload your release?
Found the issue. If I set <BeautyExcludes>Shoko*.dll</BeautyExcludes>
it doesn't clean up the rest
you need to set more specific rule.
It also wasn't needed. It works, thanks
As you can see, ResX generates language code folders which have additional DLLs inside them. According to this, they are loaded in the same way that this does, so simply putting them inside the libraries folder would clean it up nicely.
EDIT: I noticed that it gets some of the files, but not all of them.... I wonder why....