Allow modifying certain files post-build without forcing BlazorCacheBootResources=false
#45687
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Hi! I've been following this issue to allow us to easily use the
lb_LU
date format, month/day names and so on. Given that the language isn't used very much, it does not seem like it'll be included by default anytime soon, so the proposed solution for my case was to use our customicudt.dat
file that does include the completelb_LU
locale.After messing around a little I found that I could replace the icu files with the following afterbuild target:
This seems like it works post-publish, as I assume the integrity hash is recalculated with the new icu files somewhere along the
Publish
flow? But this doesn't work if I run the project locally, the usual integrity-check failure occurs on theicudt.dat
file.Describe the solution you'd like
An ideal solution would be something that doesn't require me to lose the benefits of
BlazorCacheBootResource
and no need for customicudt.dat
versions & copy targets. Maybe a way to exclude files from integrity checks? I don't know enough about the Build/Publish + integrity hash generation process to propose something more in-depth.Additional context
I'd like to be able to fully use the
lb_LU
locale with Blazor as I have the requirement to support 4 languages (English, French, German, and Luxembourgish). Currently if I use thelb_LU
locale it defaults toen_US
values (I suppose, it's the US date format e.g.).The text was updated successfully, but these errors were encountered: