CodeDOM Provider for PowerShell
C# PowerShell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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:


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.