GPUI.NET.Native 0.2.0-preview.1

This is a prerelease version of GPUI.NET.Native.
dotnet add package GPUI.NET.Native --version 0.2.0-preview.1
                    
NuGet\Install-Package GPUI.NET.Native -Version 0.2.0-preview.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="GPUI.NET.Native" Version="0.2.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GPUI.NET.Native" Version="0.2.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="GPUI.NET.Native" />
                    
Project file
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 GPUI.NET.Native --version 0.2.0-preview.1
                    
#r "nuget: GPUI.NET.Native, 0.2.0-preview.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 GPUI.NET.Native@0.2.0-preview.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=GPUI.NET.Native&version=0.2.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=GPUI.NET.Native&version=0.2.0-preview.1&prerelease
                    
Install as a Cake Tool

GPUI.NET

GPUI.NET is a semantic C# frontend for GPUI, built for .NET 10 desktop applications. Your application owns state and view logic in C# while the native Rust host handles windows, layout, retained controls, and platform integration.

Install

dotnet add package GPUI.NET

The GPUI.NET package brings the managed API and the native runtime package family. Native assets are supplied for win-x64, linux-x64, osx-x64, and osx-arm64.

Minimal application

using Gpui;
using static Gpui.Units;

var application = new GpuiApplication();
application.OpenWindow(
    new MainView(),
    new GpuiWindowOptions { Title = "Hello GPUI.NET", Width = 900, Height = 600 }
);
application.Run();

[GpuiView]
internal sealed partial class MainView : View
{
    protected override Element Render(ref RenderContext ui) =>
        ui.VStack(
                ui.Text("Hello from GPUI.NET"),
                ui.Button("increment", "Increment")
            )
            .Gap(Px(12))
            .Padding(Px(20));
}

Runtime requirements

  • .NET SDK/runtime 10.
  • A desktop environment supported by the selected runtime identifier.
  • On Windows, GPUI.NET supplies a default Windows application manifest for executable projects.

The default manifest enables Common Controls v6 and Per-Monitor V2 DPI awareness. An explicitly configured consumer ApplicationManifest is preserved, and NoWin32Manifest=true disables the package-provided manifest. A custom manifest must include Microsoft.Windows.Common-Controls version 6.0.0.0; without it, Windows may fail to load the native host because the common-control API set is not activated for the process.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on GPUI.NET.Native:

Package Downloads
GPUI.NET

GPUI bindings for .NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0-preview.1 0 9/4/2026
0.1.0-preview.1 38 9/1/2026