PS2EXE.Core
0.6.1
Compiles Powershell scripts to executables. Overworking of the great script of Ingo Karstein with GUI support.
'Invoke-PS2EXE script.ps1' (or 'ps2exe script.ps1') compiles to script.exe. Several control parameters available.
Or use Win-PS2EXE as a graphical front end to the compiler.
Minimum PowerShell version
3.0
Installation Options
Owners
Copyright
(c) Fabien Tschanz 2026
Package Details
Author(s)
- Fabien Tschanz
Tags
Compiler Core PS2EXE.Core Executable PowerShell ps2exe Win-PS2EXE
Functions
Dependencies
This module has no dependencies.
Release Notes
# Version 0.6.1
* Fixed an issue where PowerShell version resolving failed.
* Fixed an issue where the PSModulePath was not set.
# Version 0.6.0
* Added support for .NET 11 SDK and PowerShell 7.7
* Fixed an issue with overwriting the source and target file
* Improved publishing for single file
# Version 0.5.0
* Added support for .NET 10 SDK and PowerShell 7.6
* Added support for trimming unused code with the -Trimmed switch
* Added support for ReadyToRun compilation with the -ReadyToRun switch
* Added support for invariant globalization mode with the -InvariantGlobalization switch
* Added warnings about potential issues when using experimental features like AOT compilation
* Improved handling of Windows Forms detection in scripts
* Reworked compilation process
* Updated documentation and error messages for better clarity.
# Version 0.4.0
* Added PowerShell and .NET SDK autodetect behavior.
* Added script validation before compilation.
* Fixed an issue where using System.Windows.Forms dialogs in PowerShell Core
would fail because the namespace is not available.
* Fixed an issue where compiling a script with the same name multiple times
would not include the latest changes to the script.
* Improved cross-platform compilation support.
# Version 0.3.0
* Added support for single file publishing with the -PublishSingleFile switch.
# Version 0.2.0
* Refactor C# file to use preprocessor directives instead of string replacements.
* Added error message if compiling for Windows PowerShell on non-Windows platform.
# Version 0.1.0
* Initial release of PS2EXE.Core.
FileList
- PS2EXE.Core.nuspec
- PS2EXE.Core.psd1
- PS2EXE.Core.psm1
- Variables.json
- Win-PS2EXE.exe
- base.csproj
- main.cs