NextUI.Platforms.Linux.Gtk4 1.6.3518
NextUI.Platforms.Linux.Gtk4
NextUI 的 Linux GTK4 / Blazor Hybrid 平台包。它封装 GTK4、WebKitGTK、Linux Essentials、 NextUI 系统能力 provider、通知 presenter、BlazorWebView handler 与只读安装目录兼容处理。
支持的运行时标识:
linux-x64linux-arm64
Linux head project 使用 net10.0,并通过 RuntimeIdentifier 选择架构:
<TargetFramework>net10.0</TargetFramework>
<RuntimeIdentifiers>linux-x64;linux-arm64</RuntimeIdentifiers>
<NextUILinuxDesktopBuild>true</NextUILinuxDesktopBuild>
<PackageReference Include="NextUI.Platforms.Linux.Gtk4" Version="1.*" />
var builder = MauiApp.CreateBuilder()
.UseNextUILinuxGtk4App<App>();
NextUILinuxGtk4Host.Initialize("com.example.myapp");
发布示例:
dotnet publish LinuxHost/MyApp.Linux.csproj -c Release -r linux-x64 --self-contained true
dotnet publish LinuxHost/MyApp.Linux.csproj -c Release -r linux-arm64 --self-contained true
首期正式验证矩阵为 Ubuntu 24.04(glibc)的 linux-x64 和 linux-arm64。目标系统仍需安装 GTK 4.12+ 与
WebKitGTK 6.x;NuGet 包不会静态捆绑这些系统库,也不会把 GTK/WebKit 的安全更新冻结在包内。
No packages depend on NextUI.Platforms.Linux.Gtk4.
.NET 10.0
- NextUI.Core (>= 1.6.3518)
- Microsoft.Maui.Platforms.Linux.Gtk4 (>= 0.1.0-preview.12.26358.3)
- Microsoft.Maui.Platforms.Linux.Gtk4.BlazorWebView (>= 0.1.0-preview.12.26358.3)
- Microsoft.Maui.Platforms.Linux.Gtk4.Essentials (>= 0.1.0-preview.12.26358.3)
| Version | Downloads | Last updated |
|---|---|---|
| 1.6.3518 | 0 | 7/15/2026 |