Re:.NET 10 Preview 6 brings JIT improvements, one-shot tool ...
by moron4hire on Wednesday July 30, 2025 @09:17PM
(#44741411)
That's not "embedding C#". That's runtime loading of .NET assemblies, which every .NET language--including PowerShell--can do.
You can embed C# in PowerShell scripts, and you have been able to do so for a long time. This webpage has a couple of examples of how this can work:
https://blog.nuvotex.de/run-c-inside-powershell/