fix: blazor wasm AOT in net7 rc2
See original GitHub issue🐛 Bug Report
Opening a new issue to provide visibility to this since I didn’t get a reply to #214 but it’s essentially the same thing.
💻 Repro or Code Sample
<RunAOTCompilation>true</RunAOTCompilation>
<RunAOTCompilationAfterBuild>true</RunAOTCompilationAfterBuild>
<WasmNativeStrip>false</WasmNativeStrip>
project targeting net7
dotnet publish -c Release
🤔 Expected Behavior
AOT and assembly trimming to function properly.
😯 Current Behavior
getting the following error message
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\7.0.0-rc.2.22472.3\Sdk\WasmApp.Native.targets(583,5): error : Precompiling failed for <...>\obj\release\net7.0\linked\Microsoft.Fast.Components.FluentUI.dll with exit code -1073741571.
💁 Possible Solution
🔦 Context
🌍 Your Environment
- OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC] windows 11 x64
- Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox] N/A
- .NET and FAST Version [e.g. 1.8.0] 7.0.0-rc.2.22472.3, 1.6.0-rc.2 CC @MertUssakliMSFT
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
ASP.NET Core updates in .NET 7 Release Candidate 2
NET 7 Release Candidate 2 (RC2) is now available and includes many great new improvements to ASP.NET Core. Here's a summary of what's...
Read more >What's new in .NET 7 RC 2 · Issue #7717 · dotnet/core
This support is only implemented for the wasmbrowser template, Blazor apps do not support threading at this time. Threaded WebAssembly support ...
Read more >Use .NET from any JavaScript app in .NET 7
NET 7 is the basis for Blazor WebAssembly apps but can be used independently of ... broken on Windows for RC1 and it...
Read more >c# - .Net7 issue with AOT compilation: "Workload ID wasm- ...
I'm decided to use the AOT compilation with a .Net7 Blazor WASM app and having no luck with publishing. After entering> dotnet workload ......
Read more >What's New in .NET 7? Discover ALL .NET 7 Features
Explore the exciting new features of .NET 7, designed to deliver faster and more efficient performance with greater reliability.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The plan was to get it out in the final 1.6 release (together with the .NET 7 release). But I can also do a 1.6.0-rc.3 release after @MertUssakliMSFT has done some tests.
Sorry about the delay, I can confirm that the fix works.