Closed AceHack closed 2 months ago
It was this line in the csproj that caused the issue, removing it fixed it.
<WasmStripILAfterAOT>true</WasmStripILAfterAOT>
I've called this out in the article on https://github.com/dotnet/AspNetCore.Docs/pull/30542. I'll keep an 👂 open here to learn if we're just going to dissuade devs from enabling it for GH Pages or if I need to address it some other way.
@lewing is this a known issue that you plan to address?
@guardrex it sounds from your comment that this is expected behavior in GitHub pages. It doesn't look to be the case, so please remove the doc comment.
Ok ... it didn't go live ... ~I'll quick shoot a PR up to just comment it out for now and remain with a 👂 open here.~
UPDATE: Per DR, I'm removing it. I'll 👂 here if it turns out that anything needs to be said later.
WasmStripILAfterAOT should be off by default, it can definitely cause issues if applications use reflection
cc @fanyang-mono
I have a PR which might fix this issue. https://github.com/dotnet/runtime/pull/90436
My application for the test was just the default Blazor WASM template. I personally was not using reflection, but I'm guessing Blazor does a lot.
Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.
Author: | AceHack |
---|---|
Assignees: | - |
Labels: | `arch-wasm`, `untriaged`, `needs-area-label` |
Milestone: | - |
https://github.com/dotnet/AspNetCore.Docs/pull/30542/ - adds a section saying that the property is not supported for github pages. I don't think property is ready for use in 8.0 at all. So, we should not be suggesting using it at all. Feel free to correct me. cc @lewing @fanyang-mono @mkArtakMSFT
~That PR was reverted at Dan's request. He thinks this is a bug.~
Actually, hold on ... that might still be on my To Do list. Let me check.
Yes! It was reverted (section). I'm keeping an 👂 open to learn if we need to cover anything or if it's a bug that will be fixed.
dotnet/AspNetCore.Docs#30542 - adds a section saying that the property is not supported for github pages. I don't think property is ready for use in 8.0 at all. So, we should not be suggesting using it at all. Feel free to correct me. cc @lewing @fanyang-mono @mkArtakMSFT
It should be advertised as an opt-in feature for people to try out. Before shipping it to .NET8 RC1, I did test it with Blazor WASM template app and it worked. I am curious what might have caused the issue. I will look into it.
@guardrex WasmStripILAfterAOT
is a complete new feature that I introduced in .NET8 RC1. It was tested on limited scenarios before shipping. Thus, we shipped it as an opt-in feature. Those two links that you listed are not related to this feature.
My apologies ... I'm buried in work here at the moment 😅. The correct link is ...
... and it is opt-in.
It seems that we need to make some remarks about enabling it. I'll be back, but it's tough to reach this at the moment. I'll get to it as soon as I can.
If you have a suggestion for remarks, you can place them here, and I'll get them into that section.
This issue should have been fixed in .NET9. @AceHack Could you try .NET9 to see if this issue still exit?
This issue has been marked needs-author-action
and may be missing some important information.
I believe this is fixed, please reopen if not
Is there an existing issue for this?
Describe the bug
I get the following errors when hosting on GitHub pages a blazor app https://github.com/dotnet/AspNetCore.Docs/issues/30535
Expected Behavior
Blazor app to work on GitHub pages
Steps To Reproduce
Create a new blazor app Try to host it on GitHub pages
Exceptions (if any)
See https://github.com/dotnet/AspNetCore.Docs/issues/30535
.NET Version
8 RC1
Anything else?
No response