Upgrade to .NET 10.0 and enhance project maintainability#1201
Merged
Upgrade to .NET 10.0 and enhance project maintainability#1201
Conversation
Updated target frameworks to .NET 10.0 in `BlazorBootstrap.Demo.RCL.csproj` and `BlazorBootstrap.Demo.WebAssembly.csproj`. Upgraded package references to version `10.0.0` of relevant libraries. Enabled HTML asset placeholders in `BlazorBootstrap.Demo.WebAssembly.csproj`. Improved `App.razor` formatting and added preloading and import map support in `index.html`. Introduced cache-busting placeholders for JavaScript files. Removed unused `<Folder>` entry in `BlazorBootstrap.Demo.RCL.csproj` to clean up the project structure.
Upgraded the target framework to .NET 10 in `BlazorBootstrap.Demo.Server.csproj` and added the `BlazorDisableThrowNavigationException` property. Enhanced `App.razor` with `<ResourcePreloader />`, `<ImportMap />`, and a new `<ReconnectModal />` component for handling reconnection scenarios. Updated script references to use dynamic asset management. Added a `ReconnectModal.razor` component with a `<dialog>` element, user interaction buttons, and messages for reconnecting, retrying, and resuming sessions. Styled the modal with animations in `ReconnectModal.razor.css` and implemented reconnect logic in `ReconnectModal.razor.js`. Modified `_Imports.razor` to include layout components. Updated `Program.cs` to use `app.MapStaticAssets()` and `app.MapRazorComponents` for interactive server rendering and added custom status code handling. These changes improve user experience, modularity, and resilience to connectivity issues.
Updated `<link>` and `<script>` tags in `App.razor` to use the `@Assets` syntax for referencing asset paths dynamically. This change was applied to multiple CSS and JavaScript files, including `blazor.bootstrap.css`, `blazorbootstrap.demo.rcl.css`, `BlazorBootstrap.Demo.Server.styles.css`, and their corresponding JavaScript files. This refactor improves maintainability by centralizing asset path management and ensures consistency in asset referencing throughout the application.
This commit removes the Blazor Hosted Server and WebAssembly applications, along with their associated files, assets, and configurations: - Deleted `BlazorBootstrap.Demo.Hosted.Server` and `BlazorBootstrap.Demo.Hosted.Client` projects. - Removed routing logic, startup code, and launch settings. - Deleted application settings (`appsettings.json`, `appsettings.Development.json`). - Removed Razor pages (`_Host.cshtml`, `Error.cshtml`) and controllers. - Deleted image assets (`placeholder.png`, multiple icons, and logos). - Removed `sitemap.xml` and other project-specific files. - Updated `blazorbootstrap.sln` to reflect project removals. These changes indicate the decommissioning or migration of the Blazor Hosted and WebAssembly applications.
The `dotNetVersion` value in the `appsettings.json` file was updated from `"9.0.0"` to `"10.0.0"`. This change reflects the application's compatibility with .NET version 10.0.0, ensuring it targets the latest framework version.
This was referenced Nov 24, 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.
Updated target frameworks to .NET 10.0 in
BlazorBootstrap.Demo.RCL.csprojandBlazorBootstrap.Demo.WebAssembly.csproj. Upgraded package references to version10.0.0of relevant libraries.Enabled HTML asset placeholders in
BlazorBootstrap.Demo.WebAssembly.csproj. ImprovedApp.razorformatting and added preloading and import map support inindex.html. Introduced cache-busting placeholders for JavaScript files.Removed unused
<Folder>entry inBlazorBootstrap.Demo.RCL.csprojto clean up the project structure.