SuncodeSoftware.SuperSDK.App
3.7.1
dotnet add package SuncodeSoftware.SuperSDK.App --version 3.7.1
NuGet\Install-Package SuncodeSoftware.SuperSDK.App -Version 3.7.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SuncodeSoftware.SuperSDK.App" Version="3.7.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SuncodeSoftware.SuperSDK.App" Version="3.7.1" />
<PackageReference Include="SuncodeSoftware.SuperSDK.App" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SuncodeSoftware.SuperSDK.App --version 3.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SuncodeSoftware.SuperSDK.App, 3.7.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SuncodeSoftware.SuperSDK.App@3.7.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SuncodeSoftware.SuperSDK.App&version=3.7.1
#tool nuget:?package=SuncodeSoftware.SuperSDK.App&version=3.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SuperSDK.App 使用指南
初始化
using SApp = SuperSDK.App.SuperApp;
public partial class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
SApp.Initialize(config =>
{
config.AppInfo = new SuperSDK.Core.AppInfo
{
ProductName = "My App",
Version = "1.0.0",
IconPath = "avares://YourApp/app.ico"
};
config.UseBuiltInLogger(showOnStartup: false);
config.UseSqlDebug(showOnStartup: false);
config.RegisterEntity<YourEntity>();
});
}
public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new MainWindow();
desktop.ShutdownRequested += (s, e) => SApp.Cleanup();
}
base.OnFrameworkInitializationCompleted();
}
}
常用 API
// 日志
SApp.LogInfo("信息");
SApp.LogWarning("警告");
SApp.LogError("错误");
// 窗口
SApp.ToggleLogger(); // Logger 窗口
SApp.ToggleSqlDebug(); // SQL Debug 窗口
SApp.ShowAbout(); // About 窗口
// 主题切换(默认暗黑模式)
SApp.ToggleTheme(); // 切换 Dark/Light 主题
图标配置
在 .csproj 中添加:
<ItemGroup>
<AvaloniaResource Include="app.ico" />
</ItemGroup>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Avalonia (>= 11.3.7)
- Avalonia.Desktop (>= 11.3.7)
- Avalonia.Diagnostics (>= 11.3.7)
- Avalonia.Fonts.Inter (>= 11.3.7)
- Avalonia.ReactiveUI (>= 11.3.7)
- Avalonia.Themes.Fluent (>= 11.3.7)
- SuncodeSoftware.SuperSDK.Core (>= 3.7.1)
- SuncodeSoftware.SuperSDK.Data (>= 3.7.1)
- SuncodeSoftware.SuperSDK.License (>= 3.7.1)
- SuncodeSoftware.SuperSDK.UI (>= 3.7.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.7.1 | 0 | 2/6/2026 |
| 3.6.0 | 0 | 2/6/2026 |
| 3.5.0 | 0 | 2/6/2026 |
| 3.4.0 | 34 | 2/5/2026 |
| 3.3.0 | 36 | 2/5/2026 |
| 3.2.0 | 40 | 2/5/2026 |
| 3.1.1 | 33 | 2/5/2026 |
| 3.1.0 | 43 | 2/5/2026 |
| 3.0.0 | 52 | 2/5/2026 |
| 2.8.5 | 55 | 2/3/2026 |
| 2.8.4 | 50 | 2/3/2026 |
| 2.8.2 | 48 | 2/3/2026 |
| 2.8.1 | 53 | 2/3/2026 |
| 2.8.0 | 55 | 2/3/2026 |
| 2.7.0 | 51 | 2/3/2026 |
| 2.6.1 | 52 | 2/3/2026 |
| 2.6.0 | 60 | 2/3/2026 |
| 2.5.0 | 57 | 2/3/2026 |
| 2.4.0 | 61 | 2/2/2026 |
| 2.3.0 | 93 | 1/16/2026 |
| 2.2.0 | 89 | 1/16/2026 |
| 2.1.0 | 91 | 1/16/2026 |
| 2.0.8 | 87 | 1/15/2026 |
| 2.0.6 | 82 | 1/15/2026 |
| 2.0.5 | 82 | 1/15/2026 |
| 2.0.4 | 85 | 1/15/2026 |
| 2.0.3 | 88 | 1/15/2026 |
| 2.0.2 | 84 | 1/15/2026 |
| 2.0.1 | 87 | 1/15/2026 |
| 2.0.0 | 90 | 1/15/2026 |
| 1.2.6 | 182 | 12/23/2025 |
| 1.2.5 | 171 | 12/23/2025 |
| 1.2.4 | 175 | 12/23/2025 |
| 1.2.2 | 174 | 12/23/2025 |
| 1.2.1 | 176 | 12/22/2025 |
| 1.2.0 | 166 | 12/22/2025 |
| 1.1.8 | 166 | 12/22/2025 |
| 1.1.7 | 174 | 12/22/2025 |
| 1.1.6 | 165 | 12/22/2025 |
| 1.1.5 | 173 | 12/22/2025 |
| 1.1.4 | 175 | 12/22/2025 |
| 1.1.3 | 170 | 12/22/2025 |
| 1.1.2 | 169 | 12/22/2025 |
| 1.1.1 | 170 | 12/22/2025 |
| 1.0.7 | 266 | 12/16/2025 |
| 1.0.6 | 265 | 12/16/2025 |
| 1.0.5 | 266 | 12/16/2025 |
| 1.0.4 | 264 | 12/16/2025 |
| 1.0.3 | 266 | 12/16/2025 |
| 1.0.2 | 265 | 12/16/2025 |
| 1.0.1 | 233 | 12/15/2025 |
| 1.0.0 | 224 | 12/15/2025 |
auto update