-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix 'HeadOutlet' getting trimmed away for Blazor WebAssembly prerendered apps after publish #35419
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
Conversation
src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostBuilder.cs
Show resolved
Hide resolved
src/Components/WebAssembly/testassets/WasmPrerendered.Client/WasmPrerendered.Client.csproj
Outdated
Show resolved
Hide resolved
SteveSandersonMS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great - thanks for sorting this out!
…red apps after publish (#35419)
|
/backport to release/6.0 |
|
Hi @MackinnonBuck. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
|
Started backporting to release/6.0: https://github.com/dotnet/aspnetcore/actions/runs/1164042744 |
|
@MackinnonBuck backporting to release/6.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Update WebAssemblyHostBuilder.cs
Applying: Added comment
Applying: Added E2E test and exception message
Using index info to reconstruct a base tree...
M AspNetCore.sln
M src/Components/Components.slnf
Falling back to patching base and 3-way merge...
Auto-merging src/Components/Components.slnf
Auto-merging AspNetCore.sln
CONFLICT (content): Merge conflict in AspNetCore.sln
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0003 Added E2E test and exception message
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128Please backport manually! |
Fix
HeadOutletgetting trimmed away for Blazor WebAssembly prerendered apps after publishThe
HeadOutletcomponent was getting trimmed away in published ASP.NET Core hosted Blazor WebAssembly prerendered apps. This caused<HeadContent>and<PageTitle>to take effect only during prerendering.PR Description
Added a
[DynamicDependency]onWebAssemblyHostBuilder.CreateDefaultto preventHeadOutletfrom getting trimmed away.Fixes #35363