NetForms.Drawing 0.1.0-preview.2

This is a prerelease version of NetForms.Drawing.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package NetForms.Drawing --version 0.1.0-preview.2
                    
NuGet\Install-Package NetForms.Drawing -Version 0.1.0-preview.2
                    
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="NetForms.Drawing" Version="0.1.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetForms.Drawing" Version="0.1.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="NetForms.Drawing" />
                    
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 NetForms.Drawing --version 0.1.0-preview.2
                    
#r "nuget: NetForms.Drawing, 0.1.0-preview.2"
                    
#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 NetForms.Drawing@0.1.0-preview.2
                    
#: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=NetForms.Drawing&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=NetForms.Drawing&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Tool

NetForms — Windows Forms for Windows and Linux

NetForms is System.Windows.Forms and System.Drawing for .NET 10 that runs the same on Windows and Linux. Same namespaces, same Program.cs → Application.Run(new MainForm()), same MainForm.cs + MainForm.Designer.cs with InitializeComponent(). Your WinForms code compiles against it without changes.

Controls are painted by NetForms itself with SkiaSharp. Avalonia 12 is used only to reach the OS (windows, input, IME, clipboard, native dialogs, DPI). Avalonia types never appear in the API.

Use it

Replace UseWindowsForms in your project file with a package reference:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net10.0</TargetFramework>   
    <ImplicitUsings>enable</ImplicitUsings>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="NetForms" Version="0.1.0-preview.2" />
    <Using Include="System.Drawing" />
    <Using Include="System.Windows.Forms" />
  </ItemGroup>
</Project>

Or let the converter do it and tell you what will not carry over:

dotnet tool install -g NetForms.Convert --prerelease
netforms-convert MyApp.csproj            # report only
netforms-convert MyApp.csproj --apply    # rewrite the project (the original is kept as .winforms.bak)

New project from a template:

dotnet new install NetForms.Templates::0.1.0-preview.2
dotnet new netforms -n MyApp

Packages

Package What it is
NetForms What an application references. Brings the rest.
NetForms.Drawing System.Drawing on SkiaSharp.
NetForms.Drawing.Common Type-forwarding System.Drawing.Common facade (resources and libraries that name it).
NetForms.Platform, NetForms.Platform.Avalonia The platform layer.
NetForms.Templates dotnet new netforms, netforms-form, netforms-usercontrol.
NetForms.Convert netforms-convert, a .NET tool that moves a WinForms project to NetForms.

Requirements

  • .NET 10 SDK. The target framework is net10.0 (not net10.0-windows).
  • Windows 10+ (x64, arm64) or Linux with X11 or XWayland (x64, arm64). macOS is not a goal of this release.
  • .NET Framework projects (old .csproj format, packages.config) are rewritten to SDK style by netforms-convert itself.
  • Third-party WinForms control packages from NuGet do not work yet (they compile against the real, strong-named System.Windows.Forms).

Documentation

Website and documentation (English and Russian): https://go-forms.github.io/.NetForms/. Installing on Windows and each Linux family: https://go-forms.github.io/.NetForms/docs/install.html.

The API is the WinForms API, documented by Microsoft at https://learn.microsoft.com/dotnet/desktop/winforms/ and https://learn.microsoft.com/dotnet/api/system.windows.forms. What NetForms implements, what it does not yet, and where it differs on purpose: https://go-forms.github.io/.NetForms/docs/compatibility.html.

MIT licensed. Source, issues and the visual designer for VS Code: https://github.com/Go-Forms/.NetForms.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on NetForms.Drawing:

Package Downloads
NetForms.Drawing.Common

System.Drawing.Common type-forwarding facade of NetForms: code and resources that name System.Drawing.Common bind to NetForms.Drawing.

NetForms

System.Windows.Forms, cross-platform: own Control tree, own painting via SkiaSharp, Avalonia as the platform layer.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.6 0 9/25/2026
0.1.0-preview.5 0 9/25/2026
0.1.0-preview.4 25 9/25/2026
0.1.0-preview.3 41 9/24/2026
0.1.0-preview.2 37 9/24/2026
0.1.0-preview.1 38 9/24/2026