Repository navigation
feat(runtime): 遷移至 .NET 11 並驗證最新 WinForms 主題 - #91
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The CI and release workflows install floating 11.x SDKs that may violate global.json’s 11.0.1xx restriction, causing .NET commands to fail when no compatible SDK is preinstalled.
1 open issue
What changed in this PR
此 PR 將 InputBox 主程式、測試與 CI/發版環境遷移至 .NET 11/C# 15,並啟用新版 WinForms 視覺樣式與延後顯示。
Changes:
- 統一目標框架與 SDK 基線,CI 建置改為將警告視為錯誤。
- 限縮 UIA 搜尋至受測程序,調整 DPI 感知與資源清理,加入視覺快照及版面檢查。
- 清理分析器診斷,更新術語規範與工程驗證紀錄。
| File | Description |
|---|---|
| tests/InputBox.Tests/VibrationPatternsTests.cs | 使用單一元素斷言的回傳值。 |
| tests/InputBox.Tests/UiWindowDiscovery.cs | 依程序篩選可見 HWND,限制 UIA 搜尋範圍。 |
| tests/InputBox.Tests/UiVisualSnapshot.cs | 新增截圖、原生 DPI 與按鈕邊界檢查。 |
| tests/InputBox.Tests/TaskExtensionsTests.cs | 明確宣告例外型別。 |
| tests/InputBox.Tests/README.md | 更新框架資訊與 UI 矩陣驗證紀錄。 |
| tests/InputBox.Tests/PhraseServiceTests.cs | 明確宣告型別並使用單一元素斷言結果。 |
| tests/InputBox.Tests/MainFormUiSmokeTests.cs | 調整 DPI、視窗探索、快照與資源清理。 |
| tests/InputBox.Tests/InputHistoryServiceTests.cs | 明確宣告導覽結果型別。 |
| tests/InputBox.Tests/InputBox.Tests.csproj | 測試改用 .NET 11/C# 15。 |
| tests/InputBox.Tests/GamepadRepeatSettingsTests.cs | 明確宣告例外型別。 |
| tests/InputBox.Tests/GamepadControllerFactoryTests.cs | 測試替身改用主要建構函式。 |
| tests/InputBox.Tests/DialogLayoutHelperTests.cs | 明確宣告解構元素型別。 |
| tests/InputBox.Tests/AnnouncementServiceTests.cs | 明確宣告例外型別。 |
| src/InputBox/Program.cs | 啟用 Latest 視覺樣式與 Deferred 顯示。 |
| src/InputBox/MainForm.Gamepad.cs | 簡化復原堆疊的尾端索引。 |
| src/InputBox/InputBox.csproj | 主程式改用 .NET 11/C# 15。 |
| src/InputBox/Core/Services/SingleInstanceHandoff.cs | 採用保留集合容量的新語法。 |
| src/InputBox/Core/Interop/DllResolver.cs | 重新命名未使用的回呼參數及對應註解。 |
| src/InputBox/Core/Input/GameInputGamepadController.cs | 移除區域變數的多餘初值。 |
| README.md | 更新執行環境連結與發佈路徑。 |
| global.json | 固定正式 SDK 基線與修補版更新策略。 |
| docs/engineering/testing.md | 更新測試目標框架。 |
| docs/engineering/localization.md | 定義七語系 Xbox 模式術語。 |
| docs/engineering/gamepad-api.md | 更新互通性規範中的目標框架。 |
| docs/engineering/core-engineering.md | 記錄遷移、主題策略與語言功能評估。 |
| .github/workflows/release.yml | 更新發版 SDK 主版本與發佈摘要。 |
| .github/workflows/ci.yml | 更新 SDK、UI 觸發範圍與嚴格建置設定。 |
Review effort: Balanced
Comment on lines
+3
to
+4
| "version": "11.0.100", | ||
| "rollForward": "latestPatch", |
perditavojo
added a commit
that referenced
this pull request
Nov 14, 2026
納入 ReportGenerator 5.5.12 與 xUnit 4.0.3,使 PR #91 符合目標分支最新狀態要求並重新執行 CI。
將主程式、測試、CI 與發版環境同步為 .NET 11/C# 15,啟用 Latest 與延後顯示。 修正 UIA 搜尋範圍、測試宿主 DPI 感知與資源處置,清理資訊診斷並補齊用詞與工程紀錄。 驗證:嚴格 Release 建置零警告、零錯誤;非 UI 測試 456/456、正式 UI 測試 11/11。 原生 100%、125%、150% 的淺色、深色及高對比九組 UI 矩陣均為 11/11。 完整風格與分析器資訊診斷皆清零,七語系資源鍵名與預留位置一致。
以 Microsoft 正式下載頁與支援政策確認 .NET 11 已於 2026 年 11 月 10 日 GA。釐清 WinForms RC 1 功能文件的標題不代表目前發行狀態;維持正式 SDK 11.0.100 與 C# 15 設定。
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.

將主程式、測試、CI 與發版環境遷移至 .NET 11/C# 15,啟用 Latest 視覺樣式與延後顯示。修正 UIA 搜尋、測試宿主 DPI 感知與資源處置,清理資訊診斷,並補齊七語系術語與工程審查紀錄。
驗證結果:
.NET 11 已於 2026-11-10 GA,使用正式 SDK 11.0.100;WinForms RC 1 功能文件標題不作為目前發行狀態判斷。