Skip to content

Conversation

@ArgoZhang
Copy link
Member

@ArgoZhang ArgoZhang commented Oct 18, 2025

Link issues

fixes #6939

Summary By Copilot

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

Summary by Sourcery

Introduce .NET10 support by updating CI/CD pipelines, documentation, and deployment scripts, add a NotFound page for unmatched routes, and refine UI navigation behavior.

New Features:

  • Add .NET10 support across code samples, project templates, and deployments
  • Implement a NotFound Razor page and configure the Router to redirect unmatched routes to the home page

Enhancements:

  • Update UI component samples and installation pages to include .NET10 in supported frameworks
  • Adjust scrollIntoView behavior to use block: 'start' for smoother navigation

Build:

  • Bump .NET SDK version to 10.0.x in all GitHub Actions workflows

Deployment:

  • Update deploy scripts to publish and copy net10.0 output
  • Create nginx logs directory in deployment script

Copilot AI review requested due to automatic review settings October 18, 2025 03:08
@bb-auto bb-auto bot added the enhancement New feature or request label Oct 18, 2025
@bb-auto bb-auto bot added this to the 9.11.0 milestone Oct 18, 2025
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Oct 18, 2025

Reviewer's Guide

This PR extends support for .NET 10 by updating version references in documentation, samples, CI/CD workflows, and deployment scripts; it also refines scrolling behavior and adds a fallback NotFound page for undefined routes.

Flow diagram for updated deployment script to .NET 10

flowchart TD
    A["dotnet publish src/BootstrapBlazor.Server -c Release"]
    B["Copy publish output from net10.0 directory"]
    C["Restart ba.blazor service"]
    A --> B --> C
Loading

File-Level Changes

Change Details Files
Add .NET 10 support across documentation and sample UIs
  • Extend supported version list to include NET10 in sample reconnectors and component descriptions
  • Update installation instructions for server and WASM to list NET10
src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor
src/BootstrapBlazor.Server/Components/Components/BlazorReconnector.razor
src/BootstrapBlazor.Server/Components/Pages/Install_Server.razor
src/BootstrapBlazor.Server/Components/Pages/Install_wasm.razor
Upgrade CI workflows to use .NET 10 SDK
  • Change dotnet-version from 9.0.x to 10.0.x in GitHub Actions configurations
.github/workflows/auto-pull-request-checks.yml
.github/workflows/build.yml
.github/workflows/publish.yml
Adjust deployment scripts for .NET 10 and logging
  • Point publish path to net10.0 output in blazor deploy script
  • Create nginx logs directory before copying config
scripts/linux/deploy-blazor.sh
scripts/linux/deploy.sh
Refine scroll behavior in component layout
  • Update scrollIntoView block option from 'center' to 'start' for smoother navigation
src/BootstrapBlazor.Server/Components/Layout/ComponentLayout.razor.js
Implement fallback routing for unknown pages
  • Add a NotFound.razor page that redirects to home
  • Configure Router component with NotFoundPage pointing to new NotFound component
src/BootstrapBlazor.Server/Components/Routes.razor
src/BootstrapBlazor.Server/Components/Pages/NotFound.razor

Assessment against linked issues

Issue Objective Addressed Explanation
#6939 Add NET10 support to the project, including updating documentation and configuration to reference NET10.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

sourcery-ai[bot]
sourcery-ai bot previously approved these changes Oct 18, 2025
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes and they look great!

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location> `scripts/linux/deploy.sh:30` </location>
<code_context>

 echo "*********************** install nginx ***********************"
 yes|sudo apt install nginx
+mkdir /usr/share/nginx/logs

 echo "*********************** copy nginx config ***********************"
</code_context>

<issue_to_address>
**suggestion (bug_risk):** Unconditionally creating /usr/share/nginx/logs may fail if the directory already exists.

Use 'mkdir -p' to prevent errors if the directory already exists during repeated deployments.

```suggestion
mkdir -p /usr/share/nginx/logs
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds initial .NET 10 support across the solution, updates UI copy to reflect NET10, and adjusts build/deploy tooling accordingly.

  • Add net10.0 TFM and preview package versions.
  • Update CI to use .NET 10 SDK and deployment scripts to publish/copy net10 output.
  • Introduce a NotFound page wiring in Router and minor UI/JS tweaks.

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/BootstrapBlazor/Directory.Build.props Adds net10.0 target and NET10 preview package version, plus net10-specific PackageReferences.
src/BootstrapBlazor.Server/Locales/zh-CN.json Updates support text to include NET10.
src/BootstrapBlazor.Server/Locales/en-US.json Updates support text to include NET10.
src/BootstrapBlazor.Server/Directory.Build.props Enables HotReloadAutoRestart for server.
src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor Updates displayed supported frameworks to include NET10.
src/BootstrapBlazor.Server/Components/Routes.razor Configures Router with a NotFoundPage.
src/BootstrapBlazor.Server/Components/Pages/NotFound.razor Adds NotFound page that redirects to root.
src/BootstrapBlazor.Server/Components/Pages/Install_wasm.razor Updates displayed target frameworks to include NET10.
src/BootstrapBlazor.Server/Components/Pages/Install_Server.razor Updates displayed target frameworks to include NET10.
src/BootstrapBlazor.Server/Components/Layout/ComponentLayout.razor.js Adjusts scrollIntoView alignment (center -> start).
src/BootstrapBlazor.Server/Components/Components/BlazorReconnector.razor Updates displayed supported frameworks to include NET10.
scripts/linux/deploy.sh Adds creation of nginx logs directory.
scripts/linux/deploy-blazor.sh Changes copy path from net9.0 to net10.0.
scripts/linux/ba.blazor.service Changes ExecStart to use bare dotnet.
Version.props Sets RunTargetFramework to net10.0.
.github/workflows/publish.yml Switches SDK setup to 10.0.x.
.github/workflows/build.yml Switches SDK setup to 10.0.x.
.github/workflows/auto-pull-request-checks.yml Switches SDK setup to 10.0.x.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Oct 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a14b67e) to head (fc95266).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #6940   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          740       740           
  Lines        31819     31875   +56     
  Branches      4469      4469           
=========================================
+ Hits         31819     31875   +56     
Flag Coverage Δ
BB 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ArgoZhang ArgoZhang merged commit 7c72861 into main Oct 18, 2025
7 checks passed
@ArgoZhang ArgoZhang deleted the feat-net10 branch October 18, 2025 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(NET10): add NET10 support

2 participants