question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
vnbaaijcommented, Nov 3, 2022

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.

0reactions
MertUssakliMSFTcommented, Nov 14, 2022

Sorry about the delay, I can confirm that the fix works.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found