Packaging Script as Exe: Single Executable?

For the Packaging Script as Exe feature, would it be possible to bundle the appconfig and statically linked DLLs into the one executable, perhaps using something like ILMerge?

This would be useful for creating a single executable for use by very unskilled end-users.

We are looking at doing something like that using the single-file publishing for .NET but the PowerShell SDK has some issues running within the single-file executable. I hope some of this is resolved in the .NET 6.0 release or a future version of the PS SDK.

That said, it would be possible to use other tools to do this as well. I’ll open a feature request for this so we can do some research.

1 Like