Conversation
- Retarget to .NET 10 (SDK 10.0.401, packages 10.0.12); CI on .NET 10 and pnpm 12 - Website.Server always runs Blazor Server (fixes #if SERVER vs BLAZOR_SERVER mismatch that meant the hub was never mapped); Website.WebAssembly is the standalone site - Server: MapStaticAssets + import map + versioned asset URLs; build-time compression gzip only (dev handler mislabels re-compressed brotli) - WebAssembly: OverrideHtmlAssetPlaceholders fingerprinting in index.html - Rename Program.cs to program_server.cs / program_wasm.cs - Tests: opt dotnet test in to Microsoft.Testing.Platform (required for xunit.v3 on the .NET 10 SDK); CI uses dotnet test --project - README: V6.x entry; V5.x no longer the preferred release - Release notes for 6.0.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- WIP builds were stamped 5.0.0-wip.<timestamp>; now 6.0.0-wip.<timestamp> - Release workflow only fired on 5.** tags, so a 6.0.0 tag would not have triggered it; now 6.** Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NavigateToButton navigated to "anchor" since #1056 (2023), which looks like a leftover from debugging; the card says it goes to the Button demo page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Release 6.0.0
First .Net 10 release of Material.Blazor. 5.3.29 was the last .Net 8 release.
.Net 10
global.jsonSDK 10.0.401;TargetFrameworksnet10.0; Microsoft packages 10.0.12, Serilog 10.x.dotnet-version: '10.x', pnpm 12.6.0, and website publish--framework net10.0(it was stillnet8.0and would have failed).dotnet testrun xunit.v3 through VSTest (Testing with VSTest target is no longer supported by Microsoft.Testing.Platform on .NET 10 SDK).global.jsonnow opts in to Microsoft.Testing.Platform, and both workflows usedotnet test --project ….Website hosting (the two VS launch projects)
program_server.csused#if SERVER, but the build definesBLAZOR_SERVER, soAddServerSideBlazor/MapBlazorHubnever compiled in. The project hosted the WebAssembly app in theWebAssemblyconfiguration, and Server mode was broken in theServerconfiguration. The WebAssembly project reference,PlatformDetermination.csand the WebAssembly branches ofHost.cshtmlare removed.RequiresAspNetWebAssetsis set because .Net 10 only shipsblazor.server.jsto projects that contain.razorfiles.Program.csfiles are renamedprogram_server.csandprogram_wasm.cs.OperatingSystem.IsBrowser()) instead of from the build configuration.Stale cached scripts after upgrade
Running the .Net 10 site in a browser that had the .Net 8 site cached failed with
Failed to load config file ./blazor.boot.json: the browser ran its cached .Net 8dotnet.js. (.Net 10 builds the boot config intodotnet.js.)UseStaticFilesis replaced withMapStaticAssets, andMapRazorPages().WithStaticAssets()plus<script type="importmap">inHost.cshtmlare added. Stylesheets and scripts useasp-append-version, so the URLs are fingerprinted or carry?v=<hash>.OverrideHtmlAssetPlaceholderswith an import map, preload link, and#[.{fingerprint}]markers inindex.html.Content-Encoding: br, so with build-time brotli Chrome failed to loaddotnet.<hash>.js.Docs
Verification
dotnet test --project Material.Blazor.Test/Material.Blazor.Test.csproj: 24/24 pass on .Net 10 via Microsoft.Testing.Platform.blazor.webassembly.*.js/dotnet.*.js, noblazor.boot.jsonrequest, no console errors.dotnet publishof the WebAssembly site exactly as CI runs it: no placeholders left inindex.html, every referenced file exists,404.htmlpresent.🤖 Generated with Claude Code