Should Blazor AOT still be downloading dlls? #33730
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-aot-compilation
This issue is related to AoT compilation of Blazor WebAssembly apps
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Describe the bug
When running AOT build I am seeing the blazor.wasm file increase size from 398KB to 3.6MB which matches my expectations.
However, I am also still seeing the dlls being downloaded, these look exactly the same files and sizes as per the non-AOT application. My assumption was that these would no longer be required, or would be
.wasm
instead?To Reproduce
Load dev tools, clear application data. Navigate to AOT compiled site.
Dlls are still downloaded as well as wasm file.
Exceptions (if any)
Further technical details
Following notes from here: https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-preview-4/#blazor-webassembly-ahead-of-time-aot-compilation
Prerendering the wasm app in server project.
From the Client csproj:
I appreciate that I might not of fully understood how AOT is working, in which case I apologise for wasting time. I would appreciate a link to some more information as to how it all works :)
The text was updated successfully, but these errors were encountered: