FSharp Packer is a tool that allows you to package FSX files as self-contained executables. Installation is simple, just use the command ‘dotnet tool install –global FSharpPacker’. The tool supports various options such as specifying target frameworks, enabling AOT compilation, and producing single-file executables. It also supports various FSX directives like #load and #r for loading files and packages. One unique feature is the ability to produce self-contained executables with dotnet 7 and a single file. Controversially, some directives like custom paths may require deep involvement with FSharp.Compiler.Services. Overall, FSharp Packer provides a convenient way to convert FSX files into executable files.
https://github.com/kant2002/FSharpPacker