Adapt SystemTools for ClassIsland misha-alpha (Avalonia12 / net10 / apiVersion 2.2)#90
Closed
MrWanger-qq wants to merge 5 commits into
Closed
Adapt SystemTools for ClassIsland misha-alpha (Avalonia12 / net10 / apiVersion 2.2)#90MrWanger-qq wants to merge 5 commits into
MrWanger-qq wants to merge 5 commits into
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Co-authored-by: Programmer_MrWang <wanghaoyu-geren@outlook.com>
fix:System.Management版本号错误导致程序启动崩溃
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.
Motivation
develop/v2/misha-alpha分支的变更:迁移到 Avalonia 12 / FluentAvalonia 3、移除已弃用的 Avalonia API、将目标框架切换到 .NET 10,并更新插件清单的apiVersion到2.2。Description
SystemTools.csproj以将目标框架改为net10.0-windows10.0.19041.0,并加入<EnableDynamicLoading>true</EnableDynamicLoading>与<CreateCipx>true</CreateCipx>属性,同时将ClassIsland.PluginSdk与ClassIsland.Core更新为2.1.1并用<ExcludeAssets>runtime; native</ExcludeAssets>排除宿主应提供的运行时/本地资产;并将Microsoft.Extensions.DependencyInjection与System.Drawing.Common升级到10.0.0。 (文件:SystemTools.csproj)_control[!Property] = new Binding(...)改为_control.Bind(Property, new Binding(...)),并移除对ToBinding()的调用(直接使用GetObservable(...)),以兼容 Avalonia 12。受影响的控件文件包括:Controls/AdjustScreenBrightnessSettingsControl.cs、Controls/DisableDeviceSettingsControl.cs、Controls/EnableDeviceSettingsControl.cs、Controls/HotkeyRecorderControl.cs、Controls/KillProcessSettingsControl.cs、Controls/SetVolumeSettingsControl.cs、Controls/ShowFloatingWindowSettingsControl.cs、Controls/ShowToastSettingsControl.cs、Controls/TriggerCustomTriggerSettingsControl.cs、Controls/TypeContentSettingsControl.cs。manifest.yml的apiVersion为2.2。 (文件:manifest.yml)using static System.Windows.Forms.VisualStyles.VisualStyleElement.TrayNotify;等多余引用以简化代码。 (示例:Controls/HotkeyRecorderControl.cs)Testing
SystemTools.csproj运行了 XML 解析检查:使用python3的xml.etree.ElementTree.parse('SystemTools.csproj'),解析通过(成功)。rg/ 脚本扫描并确认已移除索引器绑定语法\[!.*Property\]与ToBinding()的调用(扫描成功,未发现残留样式)。dotnet build SystemTools.csproj进行实际编译时环境中未安装dotnet,因此真实构建未执行(构建步骤被跳过)。Codex Task