Skip to content

Upgrade to .NET 10.0 and enhance project maintainability#1201

Merged
gvreddy04 merged 5 commits intomainfrom
features/upgrade-demos-to-10
Nov 23, 2025
Merged

Upgrade to .NET 10.0 and enhance project maintainability#1201
gvreddy04 merged 5 commits intomainfrom
features/upgrade-demos-to-10

Conversation

@gvreddy04
Copy link
Copy Markdown
Contributor

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.

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.
@gvreddy04 gvreddy04 added this to the 3.5.0 milestone Nov 22, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant