Skip to content

Conversation

@JusterZhu
Copy link
Collaborator

@JusterZhu JusterZhu commented Jan 6, 2026

No description provided.

@JusterZhu JusterZhu self-assigned this Jan 6, 2026
@JusterZhu JusterZhu added the features New feature or request label Jan 6, 2026
@JusterZhu JusterZhu linked an issue Jan 6, 2026 that may be closed by this pull request
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

This pull request aims to adapt the codebase to .NET 10 by upgrading NuGet package versions from 9.0.0 to 10.0.1 and introducing new features including a Scripts-based update mode. The changes refactor the GeneralUpdateBootstrap class to support two execution modes (Default and Scripts) and convert WindowsStrategy from synchronous to asynchronous execution.

Key changes include:

  • Upgrade of multiple NuGet packages (System.Text.Json, Microsoft.Bcl.AsyncInterfaces, System.Collections.Immutable, Microsoft.AspNetCore.SignalR.Client) from version 9.0.0 to 10.0.1
  • Introduction of UpdateMode enum with Default and Scripts modes, enabling workflow-based update execution
  • Significant refactoring of GeneralUpdateBootstrap to support both environment-based initialization and explicit configuration via SetConfig method
  • Conversion of WindowsStrategy.Execute to ExecuteAsync pattern, removing Task.Run wrapper

Reviewed changes

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

Show a summary per file
File Description
src/c#/GeneralUpdate.Upgrad/Program.cs Adds explicit configuration setup using Configinfo and new UpdateMode.Scripts option
src/c#/GeneralUpdate.Upgrad/GeneralUpdate.Upgrad.csproj Updates System.Text.Json package from 9.0.0 to 10.0.1
src/c#/GeneralUpdate.Core/Strategys/WindowsStrategy.cs Converts Execute method to ExecuteAsync, removing Task.Run wrapper for cleaner async pattern
src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs Major refactoring: adds SetConfig method, ExecuteWorkflowAsync for Scripts mode, helper methods, and reorganizes code structure
src/c#/GeneralUpdate.Core/GeneralUpdate.Core.csproj Updates three packages to version 10.0.1 and adds UpdateMode.cs link
src/c#/GeneralUpdate.Common/Shared/Object/Enum/UpdateMode.cs Adds new UpdateMode enum with Default and Scripts values
src/c#/GeneralUpdate.Common/Internal/Bootstrap/UpdateOption.cs Adds Mode option for UpdateMode configuration
src/c#/GeneralUpdate.Common/GeneralUpdate.Common.csproj Updates three packages to version 10.0.1
src/c#/GeneralUpdate.ClientCore/GeneralUpdate.ClientCore.csproj Updates three packages to version 10.0.1 and adds UpdateMode.cs link
src/c#/GeneralUpdate.Bowl/GeneralUpdate.Bowl.csproj Updates two packages to version 10.0.1 and adds UpdateMode.cs link

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

public override void Create(GlobalConfigInfo parameter) => _configinfo = parameter;

public override void Execute()
public override async Task ExecuteAsync()
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The WindowsStrategy has been updated to use ExecuteAsync, but LinuxStrategy in the same directory still uses the synchronous Execute method with Task.Run. For consistency and maintainability, both strategies should follow the same async pattern. Consider updating LinuxStrategy to also implement ExecuteAsync instead of Execute.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 6, 2026 16:25
JusterZhu and others added 2 commits January 7, 2026 00:26
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI commented Jan 6, 2026

@JusterZhu I've opened a new pull request, #96, to work on those changes. Once the pull request is ready, I'll request review from you.

JusterZhu and others added 2 commits January 7, 2026 00:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +51 to +54
/// <summary>
/// Specifies the update execution mode.
/// </summary>
public static readonly UpdateOption<UpdateMode?> Mode = ValueOf<UpdateMode?>("MODE");
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The documentation comment for the Mode field is copy-pasted from the BackUp field above it and incorrectly states "Whether to enable the backup function" when it should describe the update mode setting.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 6, 2026 16:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI commented Jan 6, 2026

@JusterZhu I've opened a new pull request, #97, to work on those changes. Once the pull request is ready, I'll request review from you.

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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 6, 2026 16:44
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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JusterZhu JusterZhu merged commit 43c59e6 into master Jan 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

features New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Adapt to .NET 10 New Features

2 participants