- Notifications
You must be signed in to change notification settings - Fork10.5k
Closed
Labels
Milestone
Description
Describe the bug
I raised this issue previously, but I cannot find anywhere where it is being tracked to see status (apologies if I'm just missing it - happy to be linked to another ticket).
There are still a large amount ofdlls being downloaded with AOT. Perhaps it is my misunderstanding of how it works but I do not expect the dlls, just a larger.wasm file?
Larger wasm file than before AOT:
But still a large number of dlls:
To Reproduce
Install workload:dotnet workload install wasm-tools
Project withRunAOTCompilation set to true.
<PropertyGroup> <TargetFramework>net6.0</TargetFramework> <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest> <BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport> <BlazorWebAssemblyPreserveCollationData>false</BlazorWebAssemblyPreserveCollationData> </PropertyGroup> <PropertyGroupCondition="'$(Configuration)'!='DEBUG'"><!-- Bug in .Net 6 Preview 7 - this should not be non-debug only. https://github.com/dotnet/runtime/issues/55750--> <InvariantGlobalization>true</InvariantGlobalization> <RunAOTCompilation>true</RunAOTCompilation> </PropertyGroup>
Publish application.
Further technical details
.NET SDK (reflecting any global.json): Version: 6.0.100-preview.7.21379.14 Commit: 22d70b47bcRuntime Environment: OS Name: Windows OS Version: 10.0.19043 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.100-preview.7.21379.14\Host (useful for support): Version: 6.0.0-preview.7.21377.19 Commit: 91ba01788d