feat(core, site):Add AOT support and GitHub alerts in Markdown.#263
Merged
LittleLittleCloud merged 18 commits intoRazorConsole:mainfrom Dec 26, 2025
Merged
feat(core, site):Add AOT support and GitHub alerts in Markdown.#263LittleLittleCloud merged 18 commits intoRazorConsole:mainfrom
LittleLittleCloud merged 18 commits intoRazorConsole:mainfrom
Conversation
🚀 Preview DeploymentA preview build has been generated for this PR from CI run #20511091274! Download the artifact: To view the preview locally:
🌐 Live Preview URL: https://af34612d.razorconsole.pages.dev The live preview will be automatically updated when you push new |
Signed-off-by: Skoreyko Misha <150385054+TeseySTD@users.noreply.github.com>
Signed-off-by: Skoreyko Misha <150385054+TeseySTD@users.noreply.github.com>
Signed-off-by: Skoreyko Misha <150385054+TeseySTD@users.noreply.github.com>
ParadiseFallen
previously approved these changes
Dec 23, 2025
Member
Author
|
@LittleLittleCloud |
LittleLittleCloud
approved these changes
Dec 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key changes
AOT Annotations (RazorConsole.Core):
Added
[DynamicallyAccessedMembers]attributes toAppHost, to ensure the AOT compiler preserves necessary metadata for reflection.Safe Reflection in
ComponentMarkupUtilities:Refactored
ResolveSpinnermethod. Replaced unsafe reflection (which was prone to trimming) with a safer approach using[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]on the target type. This ensures spinner styles are correctly resolved at runtime in AOT builds.Blazor Router & Trimming Fix:
Problem: Standard trimming was removing Page components because they are not directly referenced (only via reflection in the Router), causing 404 errors on startup.
Directory.Build.propsto include<TrimmerRootAssembly Include="$(AssemblyName)" />for all Executable projects. This prevents aggressive trimming of the application assembly itself..targetsfile (RazorConsole.Core.targets) that is automatically included in the NuGet package. It applies the same anti-trimming protection for any user application that referencesRazorConsole.Core, ensuring routing works out-of-the-box.Test
I tested it on WSL Ubuntu on
RazorConsole.Gallery- everything was right, routing worked and all components too.Closes #262.