Commit 10695a6
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
File tree
49 files changed
+283
-18140
lines changed- BlazorBootstrap.Demo.Hosted
- Client
- Properties
- wwwroot
- images
- logo
- sample-data/customer
- Server
- Controllers
- Pages
- Properties
- BlazorBootstrap.Demo.RCL
- BlazorBootstrap.Demo.Server
- Components
- Layout
- BlazorBootstrap.Demo.WebAssembly
- wwwroot
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 changedThis file was deleted.
Lines changed: 0 additions & 19 deletions
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 30 deletions
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 18 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments