PowerShellCodeDomProvider icon indicating copy to clipboard operation
PowerShellCodeDomProvider copied to clipboard

CodeDOM Provider for PowerShell

PowerShell CodeDOM Provider

A CodeDOM provider for PowerShell. This enables the conversion between other languages such as C# and VB.NET. CodeDOM providers are kind of obsolete due to the introduction of Roslyn but are necessary for things like the Windows Forms editor in Visual Studio. This project may be used in future versions of PowerShell Tools for Visual Studio to enable this kind of support.

Projects like NRefactory can create CodeCompileUnits from C# or VB.NET code. Once a CodeCompileUnit has been created, the PowerShell CodeDOM Provider can convert it to PowerShell script.

For example:

To

The PowerShell CodeDOM provider is also capable of parsing a PowerShell script and returning a CodeCompileUnit so conversion between PowerShell to C# or VB.NET can take place.