FrApp42.WPF.Pwsh 1.0.0

dotnet add package FrApp42.WPF.Pwsh --version 1.0.0
                    
NuGet\Install-Package FrApp42.WPF.Pwsh -Version 1.0.0
                    
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="FrApp42.WPF.Pwsh" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FrApp42.WPF.Pwsh" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="FrApp42.WPF.Pwsh" />
                    
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 FrApp42.WPF.Pwsh --version 1.0.0
                    
#r "nuget: FrApp42.WPF.Pwsh, 1.0.0"
                    
#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 FrApp42.WPF.Pwsh@1.0.0
                    
#: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=FrApp42.WPF.Pwsh&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=FrApp42.WPF.Pwsh&version=1.0.0
                    
Install as a Cake Tool

WPF.Pwsh

A WPF control that hosts a real PowerShell session (ConPTY) — the shell starts with the control, renders through the Windows Terminal control, and raises an event when it exits.

<PackageReference Include="FrApp42.WPF.Pwsh" Version="1.0.0" />
var terminal = new FrApp42.WPF.Pwsh.PwshTerminal();     // pwsh.exe, powershell.exe as fallback
terminal.OnSessionDisconnected += (_, _) => CloseTab(); // the shell exited
Content = terminal;
  • new PwshTerminal("wsl.exe") runs any other shell.
  • WorkingDirectory sets where it starts.
  • FontFamily / FontSize set the terminal font (default MesloLGS Nerd Font Mono, 14).
  • Disconnect() kills the shell, Dispose() tears the session down.

Windows only, net8.0-windows / net10.0-windows.

Publishing

Publish (.github/workflows/publish.yml) packs and pushes to nuget.org through Trusted Publishing — no API key stored. Declare the policy on nuget.org (owner FrApp42, repository WPF.Pwsh, workflow file publish.yml), set the repository secret NUGET_USER to your nuget.org profile name, then tag main: git tag v1.0.1 && git push origin v1.0.1. The tag name (minus the v) becomes the package version.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed.  net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0 30 10/18/2026