Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork100
Upgrade to .NET 10.0 and enhance project maintainability#1201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
Updated target frameworks to .NET 10.0 in `BlazorBootstrap.Demo.RCL.csproj`and `BlazorBootstrap.Demo.WebAssembly.csproj`. Upgraded package referencesto 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 supportin `index.html`. Introduced cache-busting placeholders for JavaScript files.Removed unused `<Folder>` entry in `BlazorBootstrap.Demo.RCL.csproj` toclean 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 correspondingJavaScript files.This refactor improves maintainability by centralizing assetpath management and ensures consistency in asset referencingthroughout 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.
10695a6 intomain 1 of 3 checks passed
Uh oh!
There was an error while loading.Please reload this page.
This was referencedNov 24, 2025
Sign up for freeto 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.