-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Allow modifying certain files post-build without forcing BlazorCacheBootResources=false
#45687
Comments
@TanayParikh, could you help here? |
@igotinfected thanks for contacting us. The right way to approach this is to integrate the custom You can figure out the target to attach to, by capturing a binary log and using msbuild structured log viewer. You also likely have to intercept the publish process and do something similar to replace the file inside To summarize, you need to do this before Blazor processes the file both during build and publish, the targets to do so are part of the runtime, so they will be in a better position to guide you on how to do so. We do not plan to change how |
Hi @igotinfected. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Makes sense to me! Thanks for the swift response 😊 I'll try getting this to work tonight and update in the previously mentioned issue for future generations. |
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: