create a single exe file from bin of a windows application code example
Example: compile in one single exe c#
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true