~/talk

Writing Compiled PowerShell Cmdlets

links:none on file
slides:none on file

Shows how to write compiled PowerShell cmdlets in C# using the .NET Core SDK and VS Code, adding the PowerShell.Standard.Library package, running dotnet new / dotnet build and importing the resulting DLL as a module. Walks through a hello world cmdlet, consuming a provided DLL, a three parallel tasks multithread demo that runs three 5s sleeps in ~5s (not 15s), LINQ examples on ranges of 10 numbers, and adding a cat-fact cmdlet to PowerShell Core and building a local runtime.

AI-written summary · about

  1. 0:00Start
  2. 1:24Introduction to Powershell Commandlets in C Sharp
  3. 10:27Powershell Is a Gateway Language
  4. 11:07Dependencies
  5. 11:35.Net Core Sdk
  6. 12:49Create a New Class Library
  7. 16:01Hello World Example
  8. 19:45System Management
  9. 21:37Inheriting from the Ps Commandlet Class
  10. 32:23Local Nuget Repository
  11. 41:21When Should You Use Invoke
  12. 41:43Invoke Multi-Threading
  13. 55:35Enumerable Range
  14. 59:00Union
  15. 1:13:10Intro To Git and Github
  16. 1:27:04Powershell Discord
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.