Support for dotnet publish custom options

Hi,

can you add general support for dotnet publish custom options such as:

PublishSingleFile
EnableCompressionInSingleFile
PublishReadyToRun
PublishTrimmed
IncludeNativeLibrariesInSingleFile
IncludeNativeLibrariesForSelfExtract
IncludeAllContentForSelfExtract
TrimMode
DebuggerSupport
EnableUnsafeBinaryFormatterSerialization
EnableUnsafeUTF7Encoding
EventSourceSupport
HttpActivityPropagationSupport
InvariantGlobalization
UseSystemResourceKeys
SatelliteResourceLanguages

I want to be able to control those for different packaging, smaller file size and faster application startup. Currently, I believe that PowerShell Tools Pro is using IncludeAllContentForSelfExtract and I would like to alter the way how final executable is created.

Sure. We can add support for this. We aren’t actually using the PublishSingleFile setting for dotnet because it does not work with the PowerShell 7 SDK. There are issues with how PowerShell works that prevent it from working as a single file. We are using wrappe to create the single file but it just bundles the entire output folder which is why executables are large.