Skip to content

Commit 10695a6

Browse files
authored
Upgrade to .NET 10.0 and enhance project maintainability (#1201)
## What changed ### .NET upgrade All demo projects and configuration were updated to target .NET 10.0 (project files and appsettings.json dotNetVersion). Package references were bumped to matching 10.0.0 versions. ### Asset and startup enhancements Enabled HTML asset placeholders and cache-busting placeholders for JS assets. Added resource preloading and import map support (ResourcePreloader / ImportMap) to App.razor and index.html to improve load performance and module resolution. Switched asset references across CSS/JS and markup to use a centralized @assets syntax for dynamic asset path management. ### Reconnect / resilience features Added a new ReconnectModal component (ReconnectModal.razor, + CSS and JS) and wired it into App.razor to handle connectivity/reconnect scenarios. Program.cs updated to use app.MapStaticAssets() and app.MapRazorComponents for interactive server rendering and custom status-code handling. Added BlazorDisableThrowNavigationException property in the server project. ### Project cleanup and refactor Removed an unused <Folder> entry in the RCL project. Refactored link/script tags in multiple files to use @assets for consistent, maintainable asset referencing. ### Decommissioning Hosted & WebAssembly apps Removed the Blazor Hosted Server and WebAssembly projects and their related files: launch settings, appsettings, Razor pages (_Host.cshtml, Error.cshtml), controllers, images, sitemap, and other project-specific artifacts. Updated the solution file to reflect those removals. ### Why it matters Moves the codebase to the latest .NET runtime (10.0) and aligns package versions. Improves front-end loading performance and modularity (preloading, import maps, centralized asset handling). Adds UX resilience for connectivity issues via the reconnect modal and server-side interactive component mapping. Cleans up dead projects/files, reducing maintenance burden.
1 parent 38c99fa commit 10695a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+283
-18140
lines changed

BlazorBootstrap.Demo.Hosted/Client/App.razor

Lines changed: 0 additions & 12 deletions
This file was deleted.

BlazorBootstrap.Demo.Hosted/Client/BlazorBootstrap.Demo.Hosted.Client.csproj

Lines changed: 0 additions & 19 deletions
This file was deleted.

BlazorBootstrap.Demo.Hosted/Client/Program.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

BlazorBootstrap.Demo.Hosted/Client/Properties/launchSettings.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

BlazorBootstrap.Demo.Hosted/Client/Usings.cs

Lines changed: 0 additions & 2 deletions
This file was deleted.

BlazorBootstrap.Demo.Hosted/Client/_Imports.razor

Lines changed: 0 additions & 10 deletions
This file was deleted.

BlazorBootstrap.Demo.Hosted/Client/wwwroot/appsettings.json

Lines changed: 0 additions & 18 deletions
This file was deleted.
-6.91 KB
Binary file not shown.
-7.74 KB
Binary file not shown.
-673 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)