Skip to content

Commit 0465f6f

Browse files
committed
🛠️ 命令行兼容性升级与依赖优化
本次提交主要内容如下: - 升级开发环境文档,VS/Xcode 版本提升 - 多项目依赖由包引用切换为源码引用,便于本地开发 - 注释 Aigio.AppCenter 相关包,恢复 fusillade - 新增 CommandCompat,统一命令行参数与 Handler 绑定方式,适配新版 System.CommandLine - NoticeService 优化,确保 UI 线程安全 - 细节修正:特性标记、空值保护、无用节点清理等 - 更新子模块指向 为后续开发和维护提供更好的兼容性和可维护性。
1 parent a8701ad commit 0465f6f

32 files changed

+136
-110
lines changed

README.en.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,12 @@ See details [./doc/download-guide.en.md](./doc/download-guide.en.md)
7171
Read what we [milestones](https://github.com/BeyondDimension/SteamTools/milestones), and feel free to ask questions.
7272

7373
## ⌨️ Development Environment
74-
[Visual Studio 2022](https://visualstudio.microsoft.com/vs)
75-
[Visual Studio 2022 for Mac](https://visualstudio.microsoft.com/vs/mac)
74+
[Visual Studio 2026](https://visualstudio.microsoft.com/vs)
7675
[JetBrains Rider](https://www.jetbrains.com/rider)
7776
[Visual Studio Code](https://code.visualstudio.com)
7877
[OpenJDK 17](https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17)
7978
[Android Studio Electric Eel Or Higher](https://developer.android.com/studio)
80-
[Xcode 14 Or Higher](https://developer.apple.com/xcode)
79+
[Xcode 26 Or Higher](https://developer.apple.com/xcode)
8180

8281
## 🏗️ Project Structure
8382
See details  [./src/README.md](./src/README.md)

README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,28 +93,12 @@
9393
查看这个 [milestones](https://github.com/BeyondDimension/SteamTools/milestones) 来了解我们下一步的开发计划,并随时提出问题。
9494

9595
## ⌨️ 开发环境
96-
[Visual Studio 2022](https://visualstudio.microsoft.com/zh-hans/vs)[Visual Studio 2022 for Mac](https://visualstudio.microsoft.com/zh-hans/vs/mac)
97-
- 系统要求
98-
- [Windows 11 版本 21H2 或更高版本:家庭版、专业版、专业教育版、专业工作站版、企业版和教育版](https://learn.microsoft.com/zh-cn/visualstudio/releases/2022/system-requirements)
99-
- [macOS Big Sur 11.0 或更高版本](https://learn.microsoft.com/zh-cn/visualstudio/releases/2022/mac-system-requirements)
100-
- 工作负荷
101-
- Web 和云
102-
- ASP.NET 和 Web 开发
103-
- 桌面应用和移动应用
104-
- 使用 .NET 的移动开发 / .NET Multi-platform App UI 开发
105-
- .NET 桌面开发
106-
- 通用 Windows 平台开发
107-
- 单个组件
108-
- GitHub Extension for Visual Studio(可选)
109-
- [Visual Studio Marketplace](https://marketplace.visualstudio.com)
110-
- [Avalonia for Visual Studio(可选)](https://marketplace.visualstudio.com/items?itemName=AvaloniaTeam.AvaloniaVS)
111-
- [NUnit VS Templates(可选)](https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnitTemplatesforVisualStudio)
112-
96+
[Visual Studio 2026](https://visualstudio.microsoft.com/zh-hans/vs)
11397
[JetBrains Rider](https://www.jetbrains.com/rider)
11498
[Visual Studio Code](https://code.visualstudio.com)
11599
[OpenJDK 17](https://learn.microsoft.com/zh-cn/java/openjdk/download#openjdk-17)
116100
[Android Studio Electric Eel 或更高版本](https://developer.android.google.cn/studio)
117-
[Xcode 14 或更高版本](https://developer.apple.com/xcode)
101+
[Xcode 26 或更高版本](https://developer.apple.com/xcode)
118102

119103
## 🏗️ [项目结构](./src/README.md)
120104
详见  [./src/README.md](./src/README.md)

ref/Common

src/BD.WTTS.Client.Avalonia/BD.WTTS.Client.Avalonia.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
<!-- Windows Only -->
9797
<ProjectReference Include="..\Avalonia.X11\Avalonia.X11.csproj" />
9898
<ProjectReference Include="..\Avalonia.Native\Avalonia.Native.csproj" />
99-
<PackageReference Include="Aigio.Avalonia.AppCenter" />
99+
<!--<PackageReference Include="Aigio.Avalonia.AppCenter" />
100100
<PackageReference Include="Aigio.Avalonia.AppCenter.Analytics" />
101-
<PackageReference Include="Aigio.Avalonia.AppCenter.Crashes" />
101+
<PackageReference Include="Aigio.Avalonia.AppCenter.Crashes" />-->
102102
<PackageReference Include="Avalonia.Win32" />
103103
<ProjectReference Include="..\..\ref\Common\src\BD.Common.Essentials.Maui.Runtime\BD.Common.Essentials.Maui.Runtime.csproj" />
104104
<PackageReference Include="JumpLists.Win32.Avalonia" />

src/BD.WTTS.Client.Avalonia/UI/Views/Windows/MainWindow.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Task IApplicationSplashScreen.RunTasks(CancellationToken token)
190190
});
191191

192192
AdvertiseService.Current.InitAdvertise();
193-
await NoticeService.Current.GetNewsAsync();
193+
NoticeService.Current.GetNews();
194194

195195
var mainWindow = App.Instance.MainWindow;
196196
mainWindow.ThrowIsNull();

src/BD.WTTS.Client.Plugins.Accelerator.ReverseProxy/BD.WTTS.Client.Plugins.Accelerator.ReverseProxy.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,20 @@
9292
</ItemGroup>
9393

9494
<ItemGroup>
95-
<PackageReference Include="BD.Common" />
96-
<PackageReference Include="BD.Common.Repositories.SQLitePCL" />
95+
<!--<PackageReference Include="BD.Common" />
96+
<PackageReference Include="BD.Common.Repositories.SQLitePCL" />-->
97+
<ProjectReference Include="..\..\ref\Common\src\BD.Common.Repositories.SQLitePCL\BD.Common.Repositories.SQLitePCL.csproj" />
98+
<ProjectReference Include="..\..\ref\Common\src\BD.Common\BD.Common.csproj" />
9799
<PackageReference Include="NLog" />
98100
<PackageReference Include="System.Linq.Async" />
99101
<PackageReference Include="Ae.DNS.Client" />
100102
<PackageReference Include="DNS" />
101103
<PackageReference Include="DnsClient" />
102104
<PackageReference Include="Yarp.ReverseProxy" />
103105
<PackageReference Include="NLog.Web.AspNetCore" />
104-
<PackageReference Include="Aigio.Any.AppCenter" />
106+
<!--<PackageReference Include="Aigio.Any.AppCenter" />
105107
<PackageReference Include="Aigio.Any.AppCenter.Analytics" />
106-
<PackageReference Include="Aigio.Any.AppCenter.Crashes" />
108+
<PackageReference Include="Aigio.Any.AppCenter.Crashes" />-->
107109
<PackageReference Include="System.Drawing.Common" />
108110
<PackageReference Include="System.Runtime.Caching" />
109111
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />

src/BD.WTTS.Client.Plugins.Accelerator.ReverseProxy/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static void ConfigureServices(IServiceCollection services)
7777
services.AddLogging(l =>
7878
{
7979
l.ClearProviders();
80-
l.AddNLog(LogManager.Configuration); // 添加 NLog 日志
80+
l.AddNLog(LogManager.Configuration!); // 添加 NLog 日志
8181
#if DEBUG
8282
l.AddConsole();
8383
#endif

src/BD.WTTS.Client.Plugins.Accelerator/Settings/GameAcceleratorSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static GameAcceleratorSettingsContext Instance
1111
=> instance ??= new GameAcceleratorSettingsContext(ISettings.GetDefaultOptions());
1212
}
1313

14-
[MPObj, MP2Obj(SerializeLayout.Explicit)]
14+
[MP2Obj(SerializeLayout.Explicit)]
1515
public sealed partial class GameAcceleratorSettings_ : ISettings, ISettings<GameAcceleratorSettings_>
1616
{
1717
public const string Name = nameof(GameAcceleratorSettings);

src/BD.WTTS.Client.Plugins.ArchiSteamFarmPlus/BD.WTTS.Client.Plugins.ArchiSteamFarmPlus.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@
135135
</Compile>
136136
</ItemGroup>
137137

138-
<ItemGroup>
139-
<Folder Include="Settings\" />
140-
</ItemGroup>
141-
142138
<Import Project="..\TFM_NETX_WITH_DESKTOP.props" />
143139

144140
</Project>

0 commit comments

Comments
 (0)