Building Cross Platform PowerShell Modules
summary
Deep dive on building cross‑platform binary PowerShell modules: demonstrates using the PowerShell Standard Library and targeting .NET Standard so one DLL can load on Windows PowerShell and PowerShell Core, shows docker‑based Pester testing to validate Ubuntu/Mac/Windows images, and introduces compatibility helpers like Windows PS module path and a power‑shim local‑remoting trick. Simple modules and the get‑beer demo work cross‑platform, but complex binaries hit pain: libuv native binaries and assembly‑load/resolve conflicts force per‑runtime artifacts or careful runtime‑specific loading.
AI-written summary · about
chapters (16)
- 0:00Start
- 0:19Agenda
- 0:55A new era of PowerShell
- 1:25A golden age of incompatibility
- 2:25Identifying Differences
- 3:15Tools to help
- 9:01Modules - Rules to Live By
- 10:19Module Manifests
- 11:21Using Docker for Cross Platform Testing
- 16:35Understanding.NET Core
- 18:14Building for NET Standard
- 18:43Deployment
- 24:31Native Binaries
- 35:08Caveats
- 35:56Calls to action
- 36:57Thank you!
related talks
41mUsing PowerShell in a Cross Platform World - Bill Hurt
40mPowerShell Everywhere: Unleashing the Power..
45mPlatform PowerShell
01h 29mModularizing PowerShell: Making Code Portable
03h 04mMastering Making Modules
45mNew Shell in Town: Adventures in using PowerShell on Linux
45mUsing PowerShell to be a Linux Administrator
51mPowerShell module toolbox and templates for Continuous Delivery
