Build PSReadLine from source
masterTo build PSReadLine on Windows, Linux, or macOS, you need .NET 6.0 (or newer) and the PowerShell modules InvokeBuild and platyPS installed.
Use the build.ps1 script to manage the build process:
- Bootstrap:
./build.ps1 -Bootstrap - Build (Debug):
./build.ps1 -Configuration Debug - Test (.NET 6.0):
./build.ps1 -Test -Configuration Debug -Framework net6.0 - Test (.NET 4.7.2, Windows only):
./build.ps1 -Test -Configuration Debug -Framework net472
Artifacts are located in <repo-root>/bin/Debug.
To test your local build without interference:
- Start a new session:
pwsh -NonInteractive -NoProfile - Import your local module:
Import-Module <path-to-your-build>/PSReadLine/PSReadLine.psd1