RoyalApps.Community.FreeRdp.WinForms
2.3.0
Prefix Reserved
dotnet add package RoyalApps.Community.FreeRdp.WinForms --version 2.3.0
NuGet\Install-Package RoyalApps.Community.FreeRdp.WinForms -Version 2.3.0
<PackageReference Include="RoyalApps.Community.FreeRdp.WinForms" Version="2.3.0" />
<PackageVersion Include="RoyalApps.Community.FreeRdp.WinForms" Version="2.3.0" />
<PackageReference Include="RoyalApps.Community.FreeRdp.WinForms" />
paket add RoyalApps.Community.FreeRdp.WinForms --version 2.3.0
#r "nuget: RoyalApps.Community.FreeRdp.WinForms, 2.3.0"
#:package RoyalApps.Community.FreeRdp.WinForms@2.3.0
#addin nuget:?package=RoyalApps.Community.FreeRdp.WinForms&version=2.3.0
#tool nuget:?package=RoyalApps.Community.FreeRdp.WinForms&version=2.3.0
FreeRDP Control
RoyalApps.Community.FreeRdp.WinForms embeds FreeRDP's Windows client in a WinForms application. It launches wfreerdp.exe with a parent-window handle; it does not use Microsoft RDP ActiveX or FreeRdpKit.
- Typed destination, gateway, display, certificate, and redirection settings.
- A bundled client, with support for selecting a compatible custom executable.
- Connection events, credential/certificate retries, and resize/zoom reconnects.
- Opt-in native diagnostics with per-launch configuration and stdout/stderr capture, introduced in 2.2.4.
The current source targets .NET 10 and .NET 11 on Windows. Older package releases may have different framework requirements.
Documentation
The documentation can be found here:
- Documentation site
- Getting Started
- Configuration
- Lifecycle and Events
- Diagnostics
- Troubleshooting
- Support Matrix
- API Reference
See documentation development and deployment to preview the site locally or publish it to GitHub Pages.

Installation
dotnet add package RoyalApps.Community.FreeRdp.WinForms
For the diagnostics APIs, install version 2.2.4 or later from a feed containing that version.
Quick start
On the WinForms UI thread, add the control to a form or container before connecting:
using System.Windows.Forms;
using RoyalApps.Community.FreeRdp.WinForms;
// In your form's constructor, after initialization:
var rdp = new FreeRdpControl { Dock = DockStyle.Fill };
Controls.Add(rdp);
rdp.Configuration.Server = "desktop.example.test";
// Obtain credentials through your host application's secure credential flow.
rdp.Configuration.Username = username;
rdp.Configuration.Password = password;
Shown += (_, _) => rdp.Connect();
Use rdp.Disconnect() to stop the client. The containing form owns and disposes the control. Keep certificate validation enabled; see the guide before implementing certificate exceptions.
Diagnostics
Set DiagnosticsOptionsProvider before connecting and subscribe to DiagnosticOutput. The provider is evaluated before every native launch, including internal retries.
Output is raw and potentially sensitive. Handlers must be thread-safe and nonblocking. The host owns redaction, bounded buffering, file writing, persistence, and enable/disable policy. See the diagnostics guide for an integration example and lifecycle details.
Demo and development
Open src/RoyalApps.Community.FreeRdp.slnx and run RoyalApps.Community.FreeRdp.WinForms.Demo.
dotnet build src/RoyalApps.Community.FreeRdp.slnx -c Release
dotnet test src/RoyalApps.Community.FreeRdp.WinForms.Tests/RoyalApps.Community.FreeRdp.WinForms.Tests.csproj -c Release
npm ci
npm run docs:dev
Package publishing
The package workflow builds and tests both frameworks on pull requests and pushes to main. Only pushes to main publish to NuGet.org, using NuGet/login and a short-lived OIDC credential.
Sign in to NuGet.org as StefanKoell and create a trusted publishing policy with these settings:
| Field | Value |
|---|---|
| Policy name | Royal Apps Community FreeRDP |
| Package owner | RoyalApps |
| CI/CD provider | GitHub Actions |
| Repository owner | royalapplications |
| Repository | royalapps-community-freerdp |
| Workflow file | publish.yml |
| Environment | Leave empty |
| Scope | Push new packages and package versions |
| Glob patterns and packages | RoyalApps.Community.FreeRdp.* |
The workflow uses the organization Actions variable NUGET_USER=StefanKoell, which is already available to this repository. Create the policy before pushing the release changes to main. After the first successful publication, remove the old NUGET_API_KEY secret if no other workflow uses it. See the NuGet trusted publishing guide for details.
License and acknowledgements
MIT License. FreeRDP and other bundled dependencies retain their respective licenses.
Special thanks to Marc-André Moreau and akallabeth for their help.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. net11.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
-
net11.0-windows7.0
- No dependencies.
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 |
|---|---|---|
| 2.3.0 | 132 | 11/11/2026 |
| 2.2.4 | 254 | 9/6/2026 |
| 2.2.3 | 178 | 8/10/2026 |
| 2.2.2 | 222 | 6/26/2026 |
| 2.2.1 | 256 | 2/12/2026 |
| 2.2.0 | 557 | 11/21/2025 |
| 2.1.5 | 534 | 8/25/2025 |
| 2.1.4 | 442 | 3/27/2025 |
| 2.1.3 | 391 | 2/12/2025 |
| 2.1.2 | 301 | 2/7/2025 |
| 2.1.1 | 313 | 1/20/2025 |
| 2.1.0 | 393 | 11/14/2024 |
| 2.1.0-beta2 | 175 | 10/9/2024 |
| 2.1.0-beta1 | 174 | 9/19/2024 |
| 2.0.2 | 628 | 9/26/2023 |
| 2.0.1 | 343 | 9/20/2023 |
| 2.0.0 | 316 | 9/19/2023 |
| 1.3.1 | 894 | 6/22/2023 |
| 1.3.0 | 588 | 2/17/2023 |
| 1.2.8 | 549 | 11/22/2022 |